1- -- NuttyB v1.52 1.3X HP
1+ -- NuttyB v1.52 1.3X HP
22-- docs.google.com/spreadsheets/d/1QSVsuAAMhBrhiZdTihVfSCwPzbbZWDLCtXWP23CU0ko
3- for f , g in pairs (UnitDefs ) do
4- if string.sub (f , 1 , 24 ) == ' raptor_land_swarmer_heal' then
5- g .reclaimspeed = 100
6- g .stealth = 0
7- g .builder = false
8- g .workertime = g .workertime * 0.5
9- g .canassist = 0
10- g .maxthisunit = 0
11- end
12- if
13- g .customparams and g .customparams .subfolder and g .customparams .subfolder == ' other/raptors' and g .health and
14- not f :match (' ^raptor_queen_.*' )
15- then
16- g .health = 1.3 * g .health
3+
4+ local oldUnitDef_Post = UnitDef_Post
5+ function UnitDef_Post (i , j )
6+ if oldUnitDef_Post and oldUnitDef_Post ~= UnitDef_Post then
7+ oldUnitDef_Post (i , j )
8+ end
9+
10+ for unitName , unitDef in pairs (UnitDefs ) do
11+ if unitDef .customparams and unitDef .customparams .subfolder == ' other/raptors' then
12+ unitDef .metalcost = math.floor (unitDef .metalcost )
13+ unitDef .nochasecategory = " OBJECT"
14+ end
1715 end
1816end
1917
20- local h = UnitDef_Post
21- function UnitDef_Post (i , j )
22- h (i , j )
23- for i , k in pairs (UnitDefs ) do
24- if k .customparams and k .customparams .subfolder and k .customparams .subfolder == ' other/raptors' then
25- if k then
26- k .metalcost = math.floor (k .metalcost )
27- k .nochasecategory = " OBJECT"
28- end
18+ for unitName , unitDef in pairs (UnitDefs ) do
19+ if string.sub (unitName , 1 , 24 ) == ' raptor_land_swarmer_heal' then
20+ unitDef .reclaimspeed = 100
21+ unitDef .stealth = false
22+ unitDef .builder = false
23+ unitDef .workertime = (unitDef .workertime ) * 0.5
24+ unitDef .canassist = false
25+ unitDef .maxthisunit = 0
26+ end
27+
28+ if unitDef .customparams and unitDef .customparams .subfolder == ' other/raptors' and not unitName :match (' ^raptor_queen_.*' ) then
29+ if unitDef .health then
30+ unitDef .health = unitDef .health * 1.3
31+ end
32+ if unitDef .explodeas and unitDef .explodeas == " BUG_DEATH" then
33+ unitDef .explodeas = " ROOST_DEATH"
34+ end
35+ if unitDef .sfxtypes then
36+ unitDef .sfxtypes = nil
2937 end
3038 end
31- end
39+ end
0 commit comments