Skip to content

Commit

Permalink
Further differentiate overseer forms so that they have very distinct …
Browse files Browse the repository at this point in the history
…flavors:

Battle overseer no longer has a build list, can repair. HP Increased to 20k
Builder overseer buildpower increased to 4x
Cloak overseer no longer has a build list
Shield overseer no longer has a build list, self heals for 40hp/s out of combat when idle
All overseers without buildlists can still assist/repair other constructions
Factory overseer buildpower increased to 8x, buildrange reduced to 250
Meteor overseer meteor shower now lasts twice as long
  • Loading branch information
ForbodingAngel committed May 10, 2019
1 parent fa8595f commit c3c7979
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 33 deletions.
6 changes: 3 additions & 3 deletions Gamedata/alldefs_post.lua
Expand Up @@ -482,9 +482,9 @@ function ModOptions_Post (UnitDefs, WeaponDefs)
unitDef.buildcostenergy = 0
end

-- Set maximum possible workertime to 2
if unitDef.workertime and unitDef.workertime >= 2 then
unitDef.workertime = 2
-- Set maximum possible workertime to 8
if unitDef.workertime and unitDef.workertime >= 8 then
unitDef.workertime = 8
end
end
end
Expand Down
27 changes: 27 additions & 0 deletions Gamedata/unitdefs_pre.lua
Expand Up @@ -28,6 +28,33 @@ Shared.buildList = {
-- [[ecommander]],
}

Shared.buildListeCommanderFactory = {
[[ehbotengineer]],
[[eorb]],
[[escoutdrone]],
[[ebox]],
[[ehbotfac]],
[[eminifac]],
[[ebasefactory]],
[[eamphibfac]],
[[eairplant]],
[[ehbotpeewee]],
[[ehbotthud]],
[[ehbotsniper]],
[[eallterrlight]],
[[eallterrriot]],
[[eallterrheavy]],
[[elighttank3]],
[[eriottank2]],
[[eheavytank3]],
[[eamphibbuggy]],
[[eamphibriot]],
[[eamphibmedtank]],
[[efighter]],
[[egunship2]],
[[ebomber]],
}

Shared.buildListChicken = {
[[croost]]
}
Expand Down
20 changes: 10 additions & 10 deletions LuaRules/Configs/morph_defs.lua
Expand Up @@ -115,7 +115,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderbuild,
metal = 0,
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains x3 buildpower.',
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains 4x buildpower.',
require = [[tech2]],
},
{
Expand All @@ -125,7 +125,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderfactory,
metal = 0,
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 3x buildpower.',
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.',
require = [[tech2]],
},
{
Expand Down Expand Up @@ -166,7 +166,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderbuild,
metal = 0,
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains x3 buildpower.',
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains 4x buildpower.',
},
{
into = 'ecommanderfactory',
Expand All @@ -175,7 +175,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderfactory,
metal = 0,
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 3x buildpower.',
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.',
},
{
into = 'ecommanderbattle',
Expand Down Expand Up @@ -215,7 +215,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderbuild,
metal = 0,
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains x3 buildpower.',
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains 4x buildpower.',
},
{
into = 'ecommanderfactory',
Expand All @@ -224,7 +224,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderfactory,
metal = 0,
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 3x buildpower.',
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.',
},
{
into = 'ecommanderbattle',
Expand Down Expand Up @@ -273,7 +273,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderfactory,
metal = 0,
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 3x buildpower.',
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.',
},
{
into = 'ecommanderbattle',
Expand Down Expand Up @@ -322,7 +322,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderbuild,
metal = 0,
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains x3 buildpower.',
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains x4 buildpower.',
},
{
into = 'ecommanderbattle',
Expand Down Expand Up @@ -380,7 +380,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderbuild,
metal = 0,
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains x3 buildpower.',
text = 'Evolve into Builder Overseer: Stun ability AOE halved, Stun recharge halved, gains 4x buildpower.',
},
{
into = 'ecommanderfactory',
Expand All @@ -389,7 +389,7 @@ Overseer]],
Overseer]],
energy = energyCost_ecommanderfactory,
metal = 0,
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 3x buildpower.',
text = 'Evolve into Factory Overseer: Gains the ability to build all raider, riot, and MBTs anywhere, gains 8x buildpower.',
},
},

Expand Down
8 changes: 4 additions & 4 deletions LuaUI/Widgets_Evo/unit_customrings.lua
Expand Up @@ -31,23 +31,23 @@ local ringsDefs = {
--{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
},
[UnitDefNames.ecommandercloak.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1000 },
--{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1000 },
--{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
},
[UnitDefNames.ecommandershield.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1000 },
--{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1000 },
{ color = {0, 0, 1, 0.5}, lineWidth = 5, radius = 500 },
},
[UnitDefNames.ecommanderbuild.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1500 },
--{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
},
[UnitDefNames.ecommanderbattle.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 500 },
--{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 500 },
--{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
},
[UnitDefNames.ecommanderfactory.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 500 },
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 250 },
--{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
},
[UnitDefNames.eorb.id] = {
Expand Down
4 changes: 2 additions & 2 deletions Units/ecommanderbattle.lua
Expand Up @@ -104,7 +104,7 @@ local unitDef = {
"custom:gdhcannon",
},
},
buildoptions = Shared.buildList,
--buildoptions = Shared.buildList,
sounds = {
build = "miscfx/buildstart.wav",
underattack = "other/unitsunderattack1",
Expand All @@ -125,7 +125,7 @@ local unitDef = {
},
customParams = {
unittype = "mobile",
area_mex_def = "emetalextractor",
--area_mex_def = "emetalextractor",
ProvideTech = techprovided,
RequireTech = techrequired,
canbetransported = "true",
Expand Down
2 changes: 1 addition & 1 deletion Units/ecommanderbuild.lua
Expand Up @@ -81,7 +81,7 @@ local unitDef = {
turnRate = 5000,
unitname = unitName,
upright = false,
workerTime = 3,
workerTime = 4,
capturespeed = 0.25,
TerraformSpeed = 2147000,
ReclaimSpeed = 0,
Expand Down
6 changes: 3 additions & 3 deletions Units/ecommandercloak.lua
Expand Up @@ -43,7 +43,7 @@ local unitDef = {
canreclaim = false,
canstop = true,
category = "NOTAIR SUPPORT LIGHT",
description = [[Builds Units • Provides Cloak Field]],
description = [[Provides Massive Cloak Field]],
energyMake = 0,
energyStorage = 0,
energyUse = 0,
Expand Down Expand Up @@ -100,7 +100,7 @@ local unitDef = {
"custom:blacksmoke",
},
},
buildoptions = Shared.buildList,
--buildoptions = Shared.buildList,
sounds = {
build = "miscfx/buildstart.wav",
underattack = "other/unitsunderattack1",
Expand All @@ -118,7 +118,7 @@ local unitDef = {
},
customParams = {
unittype = "mobile",
area_mex_def = "emetalextractor",
--area_mex_def = "emetalextractor",
ProvideTech = techprovided,
RequireTech = techrequired,
canbetransported = "true",
Expand Down
8 changes: 4 additions & 4 deletions Units/ecommanderfactory.lua
Expand Up @@ -26,7 +26,7 @@ local unitDef = {
brakeRate = 1,
buildCostEnergy = 0,
buildCostMetal = 1000,
buildDistance = 500,
buildDistance = 250,
builder = true,
buildTime = 2.5,
capturable = false,
Expand Down Expand Up @@ -81,7 +81,7 @@ local unitDef = {
turnRate = 5000,
unitname = unitName,
upright = false,
workerTime = 3,
workerTime = 8,
capturespeed = 0.25,
TerraformSpeed = 2147000,
ReclaimSpeed = 0,
Expand All @@ -99,7 +99,7 @@ local unitDef = {
"custom:blacksmoke",
},
},
buildoptions = Shared.buildListFactory,
buildoptions = Shared.buildListeCommanderFactory,
sounds = {
build = "miscfx/buildstart.wav",
underattack = "other/unitsunderattack1",
Expand All @@ -117,7 +117,7 @@ local unitDef = {
},
customParams = {
unittype = "mobile",
area_mex_def = "emetalextractor",
--area_mex_def = "emetalextractor",
ProvideTech = techprovided,
RequireTech = techrequired,
canbetransported = "true",
Expand Down
2 changes: 1 addition & 1 deletion Units/ecommandermeteor.lua
Expand Up @@ -146,7 +146,7 @@ local weaponDefs = {
collideFriendly = false,
collideFeature = false,
commandFire = true,
burst = 50,
burst = 100,
burstrate = 0.1,
--projectiles = 5,
cegTag = "METEORTRAIL",
Expand Down
10 changes: 5 additions & 5 deletions Units/ecommandershield.lua
Expand Up @@ -47,7 +47,7 @@ local unitDef = {
canreclaim = false,
canstop = true,
category = "NOTAIR SUPPORT LIGHT",
description = [[Builds Units • Provides large shielding]],
description = [[Provides large shielding • Self-Heals out of combat 40hp/s when idle]],
energyMake = 0,
energyStorage = 0,
energyUse = 0,
Expand All @@ -56,8 +56,8 @@ local unitDef = {
footprintZ = 4,
hideDamage = true,
iconType = "commander",
idleAutoHeal = .5,
idleTime = 2200,
idleAutoHeal = 40,
idleTime = 5,
levelground = true,
maxDamage = 7500,
maxSlope = 180,
Expand Down Expand Up @@ -103,7 +103,7 @@ local unitDef = {
"custom:blacksmoke",
},
},
buildoptions = Shared.buildList,
--buildoptions = Shared.buildList,
sounds = {
build = "miscfx/buildstart.wav",
underattack = "other/unitsunderattack1",
Expand All @@ -124,7 +124,7 @@ local unitDef = {
},
customParams = {
unittype = "mobile",
area_mex_def = "emetalextractor",
--area_mex_def = "emetalextractor",
ProvideTech = techprovided,
RequireTech = techrequired,
canbetransported = "true",
Expand Down

0 comments on commit c3c7979

Please sign in to comment.