1 parent 1414613 commit be1823aCopy full SHA for be1823a
1 file changed
lua/tweakdefs/raptor hp 4.0X.lua
@@ -14,7 +14,6 @@ for unitName, unitDef in pairs(UnitDefs) do
14
unitDef.health = unitDef.health * 4
15
unitDef.sfxtypes = {}
16
unitDef.explodas = unitDef.explodas
17
- unitDef.nochasecategory = "OBJECT"
18
end
19
20
@@ -24,7 +23,10 @@ function UnitDef_Post(unitID, unitDef)
24
23
oldUnitDef_Post(unitID, unitDef)
25
26
27
- if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" and unitDef.health then
28
- unitDef.metalcost = math.floor(unitDef.health * 0.1875)
+ if unitDef.customparams and unitDef.customparams.subfolder == "other/raptors" then
+ unitDef.nochasecategory = "OBJECT"
+ if unitDef.metalcost and unitDef.health then
29
+ unitDef.metalcost = math.floor(unitDef.health * 0.1875)
30
+ end
31
32
0 commit comments