Skip to content

Commit

Permalink
Add B.O.X. unit
Browse files Browse the repository at this point in the history
Allow BOX to spawn drones
Remove drone spawning ability from all other units
Remove all energy core reclamation from all units except O.R.B.
  • Loading branch information
ForbodingAngel committed Feb 14, 2017
1 parent c857ae5 commit c747793
Show file tree
Hide file tree
Showing 90 changed files with 138 additions and 172 deletions.
4 changes: 2 additions & 2 deletions Features/All Worlds/ammobox.lua
Expand Up @@ -2,9 +2,9 @@ local objectname= "ammobox"
local featureDef = { local featureDef = {
name = "ammobox", name = "ammobox",
description =[[Energy Core description =[[Energy Core
• Can be reclaimed for 5 Metal and 5 Energy by moving an Overseer or an ORB in range • Can be reclaimed for 5 Metal and 5 Energy by moving an O.R.B. in range
• Can be converted to MidKnight Gunship Drone by moving an Engineer in range • Can be converted to MidKnight Gunship Drone by moving a B.O.X. in range
]], ]],
object ="ammobox2.s3o", object ="ammobox2.s3o",
footprintx =1, footprintx =1,
Expand Down
10 changes: 7 additions & 3 deletions Gamedata/alldefs_post.lua
Expand Up @@ -103,14 +103,18 @@ function UnitDef_Post(name, uDef)
local sqrt = math.sqrt local sqrt = math.sqrt
if (not uDef.mincloakdistance) then if uDef.cancloak == true then
local fx = uDef.footprintx and tonumber(uDef.footprintx) or 1 local fx = uDef.footprintx and tonumber(uDef.footprintx) or 1
local fz = uDef.footprintz and tonumber(uDef.footprintz) or 1 local fz = uDef.footprintz and tonumber(uDef.footprintz) or 1
local radius = 8 * sqrt((fx * fx) + (fz * fz)) local radius = 8 * sqrt((fx * fx) + (fz * fz))
uDef.mincloakdistance = (radius + 48) if uDef.customparams and uDef.customparams.decloakradiusmodifier then
uDef.mincloakdistance = (radius * uDef.customparams.decloakradiusmodifier)
else
uDef.mincloakdistance = (radius * 6)
end
end end
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-- Spring Kludge Removal -- Spring Kludge Removal
Expand Down
1 change: 1 addition & 0 deletions Gamedata/unitdefs_pre.lua
Expand Up @@ -20,6 +20,7 @@ Shared.buildList = {
[[esilo]], [[esilo]],
[[emine]], [[emine]],
[[eorb]], [[eorb]],
[[ebox]],
} }


if Spring.GetModOptions ~= nil then if Spring.GetModOptions ~= nil then
Expand Down
16 changes: 8 additions & 8 deletions LuaRules/Gadgets/game_boxcollector.lua
Expand Up @@ -69,7 +69,7 @@ if (gadgetHandler:IsSyncedCode()) then
local x,y,z = Spring.GetFeaturePosition(box) local x,y,z = Spring.GetFeaturePosition(box)
local unitsInRange = Spring.GetUnitsInSphere(x,y,z, 500)--at x , y , z with radius 200 local unitsInRange = Spring.GetUnitsInSphere(x,y,z, 500)--at x , y , z with radius 200
for _,unit in ipairs(unitsInRange) do for _,unit in ipairs(unitsInRange) do
if UnitDefs[Spring.GetUnitDefID(unit)].customParams.cancollect and select(5, Spring.GetUnitHealth(unit)) == 1 then if UnitDefs[Spring.GetUnitDefID(unit)].customParams.energycorecollect and select(5, Spring.GetUnitHealth(unit)) == 1 then
--local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(box) --- [1] is metal, [3] is energy --local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(box) --- [1] is metal, [3] is energy
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5)
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5)
Expand All @@ -80,16 +80,16 @@ if (gadgetHandler:IsSyncedCode()) then
BoxesOnMap[box] = nil BoxesOnMap[box] = nil
break break
end end
if UnitDefs[Spring.GetUnitDefID(unit)].customParams.dronespawner and select(5, Spring.GetUnitHealth(unit)) == 1 then if UnitDefs[Spring.GetUnitDefID(unit)].customParams.energycoredronespawner and select(5, Spring.GetUnitHealth(unit)) == 1 then
Spring.CreateUnit("edrone", x, y, z, 0, Spring.GetUnitTeam(unit)) Spring.CreateUnit("edrone", x, y, z, 0, Spring.GetUnitTeam(unit))
Spring.DestroyFeature(box) Spring.DestroyFeature(box)
local fx, fy, fz = Spring.GetFeaturePosition(box) local fx, fy, fz = Spring.GetFeaturePosition(box)
Spring.PlaySoundFile("sounds/dronespawner.wav", 1, fx, fy, fz) Spring.PlaySoundFile("sounds/energycoredronespawner.wav", 1, fx, fy, fz)
SpawnCEG("sparkleorangeplus1drone", fx, fy, fz) SpawnCEG("sparkleorangeplus1drone", fx, fy, fz)
BoxesOnMap[box] = nil BoxesOnMap[box] = nil
break break
end end
-- if (UnitDefs[Spring.GetUnitDefID(unit)].customParams.amphibdronespawner) then -- if (UnitDefs[Spring.GetUnitDefID(unit)].customParams.amphibenergycoredronespawner) then
-- Spring.CreateUnit("eamphibdrone", x, y, z, 0, Spring.GetUnitTeam(unit)) -- Spring.CreateUnit("eamphibdrone", x, y, z, 0, Spring.GetUnitTeam(unit))
-- Spring.DestroyFeature(box) -- Spring.DestroyFeature(box)
-- local fx, fy, fz = Spring.GetFeaturePosition(box) -- local fx, fy, fz = Spring.GetFeaturePosition(box)
Expand All @@ -106,7 +106,7 @@ if (gadgetHandler:IsSyncedCode()) then
local eggx,eggy,eggz = Spring.GetFeaturePosition(chickenEgg) local eggx,eggy,eggz = Spring.GetFeaturePosition(chickenEgg)
local unitsInRange = Spring.GetUnitsInSphere(eggx,eggy,eggz, 500)--at x , y , z with radius 200 local unitsInRange = Spring.GetUnitsInSphere(eggx,eggy,eggz, 500)--at x , y , z with radius 200
for _,unit in ipairs(unitsInRange) do for _,unit in ipairs(unitsInRange) do
if UnitDefs[Spring.GetUnitDefID(unit)].customParams.cancollect and select(5, Spring.GetUnitHealth(unit)) == 1 then if UnitDefs[Spring.GetUnitDefID(unit)].customParams.energycorecollect and select(5, Spring.GetUnitHealth(unit)) == 1 then
--local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(chickenEgg) --- [1] is metal, [3] is energy --local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(chickenEgg) --- [1] is metal, [3] is energy
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5)
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5)
Expand All @@ -125,7 +125,7 @@ if (gadgetHandler:IsSyncedCode()) then
local eggx,eggy,eggz = Spring.GetFeaturePosition(chickenEggB) local eggx,eggy,eggz = Spring.GetFeaturePosition(chickenEggB)
local unitsInRange = Spring.GetUnitsInSphere(eggx,eggy,eggz, 500)--at x , y , z with radius 200 local unitsInRange = Spring.GetUnitsInSphere(eggx,eggy,eggz, 500)--at x , y , z with radius 200
for _,unit in ipairs(unitsInRange) do for _,unit in ipairs(unitsInRange) do
if UnitDefs[Spring.GetUnitDefID(unit)].customParams.cancollect and select(5, Spring.GetUnitHealth(unit)) == 1 then if UnitDefs[Spring.GetUnitDefID(unit)].customParams.energycorecollect and select(5, Spring.GetUnitHealth(unit)) == 1 then
--local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(chickenEggB) --- [1] is metal, [3] is energy --local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(chickenEggB) --- [1] is metal, [3] is energy
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5)
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5)
Expand All @@ -144,7 +144,7 @@ if (gadgetHandler:IsSyncedCode()) then
local eggx,eggy,eggz = Spring.GetFeaturePosition(chickenEggC) local eggx,eggy,eggz = Spring.GetFeaturePosition(chickenEggC)
local unitsInRange = Spring.GetUnitsInSphere(eggx,eggy,eggz, 500)--at x , y , z with radius 200 local unitsInRange = Spring.GetUnitsInSphere(eggx,eggy,eggz, 500)--at x , y , z with radius 200
for _,unit in ipairs(unitsInRange) do for _,unit in ipairs(unitsInRange) do
if UnitDefs[Spring.GetUnitDefID(unit)].customParams.cancollect and select(5, Spring.GetUnitHealth(unit)) == 1 then if UnitDefs[Spring.GetUnitDefID(unit)].customParams.energycorecollect and select(5, Spring.GetUnitHealth(unit)) == 1 then
--local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(chickenEggC) --- [1] is metal, [3] is energy --local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(chickenEggC) --- [1] is metal, [3] is energy
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5)
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5)
Expand All @@ -163,7 +163,7 @@ if (gadgetHandler:IsSyncedCode()) then
local eggx,eggy,eggz = Spring.GetFeaturePosition(chickenEggD) local eggx,eggy,eggz = Spring.GetFeaturePosition(chickenEggD)
local unitsInRange = Spring.GetUnitsInSphere(eggx,eggy,eggz, 500)--at x , y , z with radius 200 local unitsInRange = Spring.GetUnitsInSphere(eggx,eggy,eggz, 500)--at x , y , z with radius 200
for _,unit in ipairs(unitsInRange) do for _,unit in ipairs(unitsInRange) do
if UnitDefs[Spring.GetUnitDefID(unit)].customParams.cancollect and select(5, Spring.GetUnitHealth(unit)) == 1 then if UnitDefs[Spring.GetUnitDefID(unit)].customParams.energycorecollect and select(5, Spring.GetUnitHealth(unit)) == 1 then
--local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(chickenEggD) --- [1] is metal, [3] is energy --local remM, maxM, remE, maxE, left = Spring.GetFeatureResources(chickenEggD) --- [1] is metal, [3] is energy
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "m", 5)
Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5) Spring.AddTeamResource(Spring.GetUnitTeam(unit) , "e", 5)
Expand Down
25 changes: 14 additions & 11 deletions LuaUI/Widgets_Evo/unit_customrings.lua
Expand Up @@ -27,55 +27,58 @@ end
local ringsDefs = { local ringsDefs = {
[UnitDefNames.ecommander.id] = { [UnitDefNames.ecommander.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 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.ecommandercloak.id] = { [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 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.ecommandershield.id] = { [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.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.ecommanderbuild.id] = { [UnitDefNames.ecommanderbuild.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1500 }, { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1500 },
{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.ecommanderbattle.id] = { [UnitDefNames.ecommanderbattle.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 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.ecommanderfactory.id] = { [UnitDefNames.ecommanderfactory.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 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.eorb.id] = { [UnitDefNames.eorb.id] = {
{ color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 }, { color = {1,0.5,0,0.8}, lineWidth = 2, radius = 800 },
{ color = {0.5,0,1,0.2}, lineWidth = 5, radius = 500 }, { color = {0.5,0,1,0.2}, lineWidth = 5, radius = 500 },
{ color = {0,1,0,0.6}, lineWidth = 10, radius = 1000 }, { color = {0,1,0,0.6}, lineWidth = 10, radius = 1000 },
},
[UnitDefNames.ebox.id] = {
{ color = {0.5,0,1,0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.eengineer5.id] = { [UnitDefNames.eengineer5.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 }, { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 },
{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.eamphibengineer.id] = { [UnitDefNames.eamphibengineer.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 }, { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 },
{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.eallterrengineer.id] = { [UnitDefNames.eallterrengineer.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 }, { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 },
{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.eairengineer.id] = { [UnitDefNames.eairengineer.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 600 }, { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 600 },
}, },
[UnitDefNames.ehbotengineer.id] = { [UnitDefNames.ehbotengineer.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 }, { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 800 },
{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
}, },
[UnitDefNames.ehbotengineer_turret.id] = { [UnitDefNames.ehbotengineer_turret.id] = {
{ color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1200 }, { color = {1, 0.5, 0, 0.8}, lineWidth = 2, radius = 1200 },
{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 }, --{ color = {0.5, 0, 1, 0.2}, lineWidth = 5, radius = 500 },
{ color = {0,1,0,0.6}, lineWidth = 10, radius = 1000 }, { color = {0,1,0,0.6}, lineWidth = 10, radius = 1000 },
}, },
} }
Expand Down
16 changes: 1 addition & 15 deletions Scripts/ebox_lus.lua
Expand Up @@ -8,6 +8,7 @@ terrainType = "terrainType"
function script.Create() function script.Create()
StartThread(common.SmokeUnit, {base, turret, barrel1}) StartThread(common.SmokeUnit, {base, turret, barrel1})
building = false building = false
Move(base, y_axis, 5, 200)
end end


common = include("headers/common_includes_lus.lua") common = include("headers/common_includes_lus.lua")
Expand All @@ -25,21 +26,6 @@ function thrust()
common.DirtTrail() common.DirtTrail()
end end


local nanoPoints = {'forwarddome', 'reardome'}

Spring.SetUnitNanoPieces(unitID, nanoPoints)

function script.StartBuilding(heading, pitch)
-- TODO: This is where you would add your unpack / point towards animation
SetUnitValue(COB.INBUILDSTANCE, true)
building = true
end
function script.StopBuilding()
-- TODO: This is where you would add your pack-up animation
SetUnitValue(COB.INBUILDSTANCE, false)
building = false
end

function script.Killed() function script.Killed()
Explode(forwarddome, SFX.EXPLODE_ON_HIT) Explode(forwarddome, SFX.EXPLODE_ON_HIT)
Explode(reardome, SFX.EXPLODE_ON_HIT) Explode(reardome, SFX.EXPLODE_ON_HIT)
Expand Down
4 changes: 2 additions & 2 deletions Units/AIUnits/ecommanderai.lua
Expand Up @@ -29,7 +29,7 @@ local unitDef = {
canBeAssisted = true, canBeAssisted = true,
CanCapture = true, CanCapture = true,
CanRepair = true, CanRepair = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down Expand Up @@ -148,7 +148,7 @@ There can only be one!]],
supply_granted = supplyGiven, supply_granted = supplyGiven,
ProvideTech = powerprovided, ProvideTech = powerprovided,
death_sounds = "generic", death_sounds = "generic",
cancollect = "1",
armortype = armortype, armortype = armortype,
nofriendlyfire = "1", nofriendlyfire = "1",
normaltex = "unittextures/lego2skin_explorernormal.dds", normaltex = "unittextures/lego2skin_explorernormal.dds",
Expand Down
1 change: 0 additions & 1 deletion Units/arm/armflash.lua
Expand Up @@ -18,7 +18,6 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/chicken/queen.lua
Expand Up @@ -14,7 +14,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
1 change: 0 additions & 1 deletion Units/eair/eairengineer.lua
Expand Up @@ -113,7 +113,6 @@ local unitDef = {
area_mex_def = "emetalextractor", area_mex_def = "emetalextractor",
-- needed_cover = 2, -- needed_cover = 2,
death_sounds = "generic", death_sounds = "generic",
-- airdronespawner = "1",
armortype = armortype, armortype = armortype,
-- supply_cost = supply, -- supply_cost = supply,
normaltex = "unittextures/lego2skin_explorernormal.dds", normaltex = "unittextures/lego2skin_explorernormal.dds",
Expand Down
1 change: 0 additions & 1 deletion Units/eair/upgraded/eairengineer_t2.lua
Expand Up @@ -114,7 +114,6 @@ local unitDef = {
area_mex_def = "emetalextractor", area_mex_def = "emetalextractor",
-- needed_cover = 2, -- needed_cover = 2,
death_sounds = "generic", death_sounds = "generic",
-- airdronespawner = "1",
armortype = armortype, armortype = armortype,
-- supply_cost = supply, -- supply_cost = supply,
normaltex = "unittextures/lego2skin_explorernormal.dds", normaltex = "unittextures/lego2skin_explorernormal.dds",
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/eallterraa.lua
Expand Up @@ -19,7 +19,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/eallterranarchid.lua
Expand Up @@ -42,7 +42,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/eallterrassault.lua
Expand Up @@ -35,7 +35,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
3 changes: 1 addition & 2 deletions Units/eallterrain/eallterrengineer.lua
Expand Up @@ -33,7 +33,7 @@ local unitDef = {
CanCapture = false, CanCapture = false,
CanRepair = true, CanRepair = true,
canRestore = false, canRestore = false,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down Expand Up @@ -123,7 +123,6 @@ local unitDef = {
canbetransported = "true", canbetransported = "true",
needed_cover = 1, needed_cover = 1,
death_sounds = "generic", death_sounds = "generic",
dronespawner = "1",
armortype = armortype, armortype = armortype,
-- supply_cost = supply, -- supply_cost = supply,
normaltex = "unittextures/con_legonormal.png", normaltex = "unittextures/con_legonormal.png",
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/eallterrheavy.lua
Expand Up @@ -35,7 +35,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/eallterrlight.lua
Expand Up @@ -35,7 +35,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/eallterrmed.lua
Expand Up @@ -35,7 +35,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/eallterrriot.lua
Expand Up @@ -43,7 +43,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
-- canDgun = true, -- canDgun = true,
canGuard = true, canGuard = true,
canMove = true, canMove = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/eallterrshield.lua
Expand Up @@ -32,7 +32,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = false, canAttack = false,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/upgraded/eallterranarchid_t2.lua
Expand Up @@ -42,7 +42,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/upgraded/eallterrassault_t2.lua
Expand Up @@ -35,7 +35,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
3 changes: 1 addition & 2 deletions Units/eallterrain/upgraded/eallterrengineer_t2.lua
Expand Up @@ -33,7 +33,7 @@ local unitDef = {
CanCapture = false, CanCapture = false,
CanRepair = true, CanRepair = true,
canRestore = false, canRestore = false,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down Expand Up @@ -123,7 +123,6 @@ local unitDef = {
canbetransported = "true", canbetransported = "true",
needed_cover = 1, needed_cover = 1,
death_sounds = "generic", death_sounds = "generic",
dronespawner = "1",
armortype = armortype, armortype = armortype,
-- supply_cost = supply, -- supply_cost = supply,
normaltex = "unittextures/con_legonormal.png", normaltex = "unittextures/con_legonormal.png",
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/upgraded/eallterrheavy_t2.lua
Expand Up @@ -35,7 +35,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down
2 changes: 1 addition & 1 deletion Units/eallterrain/upgraded/eallterrlight_t2.lua
Expand Up @@ -35,7 +35,7 @@ local unitDef = {
builder = false, builder = false,
buildTime = 5, buildTime = 5,
canAttack = true, canAttack = true,
cancollect = "1",
canGuard = true, canGuard = true,
canMove = true, canMove = true,
canPatrol = true, canPatrol = true,
Expand Down

0 comments on commit c747793

Please sign in to comment.