Loading...
  OR  Zero-K Name:    Password:   

Post edit history

Game mode what i paid for

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
6/7/2024 2:53:00 PMAUrankSmokeDragon before revert after revert
Before After
1 [spoiler]
2 {{{[q]
1 for name, ud in pairs(UnitDefs) do 3 for name, ud in pairs(UnitDefs) do
2 local valuemetalcost = ud.metalcost * 0.1 4 local valuemetalcost = ud.metalcost * 0.1
3 if ud.health and valuemetalcost then 5 if ud.health and valuemetalcost then
4 ud.health = ud.health + (valuemetalcost * 1000) 6 ud.health = ud.health + (valuemetalcost * 1000)
5 end 7 end
6 if ud.speed and valuemetalcost then 8 if ud.speed and valuemetalcost then
7 ud.speed = ud.speed + (valuemetalcost * 0.1) 9 ud.speed = ud.speed + (valuemetalcost * 0.1)
8 end 10 end
9 if ud.sightdistance and valuemetalcost then 11 if ud.sightdistance and valuemetalcost then
10 ud.sightdistance = ud.sightdistance + (valuemetalcost * 10) 12 ud.sightdistance = ud.sightdistance + (valuemetalcost * 10)
11 end 13 end
12 if ud.customparams and ud.customparams.jump_range and valuemetalcost then 14 if ud.customparams and ud.customparams.jump_range and valuemetalcost then
13 ud.customparams.jump_range = ud.customparams.jump_range + valuemetalcost 15 ud.customparams.jump_range = ud.customparams.jump_range + valuemetalcost
14 end 16 end
15 if ud.weapondefs then 17 if ud.weapondefs then
16 for _, wd in pairs(ud.weapondefs) do 18 for _, wd in pairs(ud.weapondefs) do
17 if wd.areaofeffect and valuemetalcost then 19 if wd.areaofeffect and valuemetalcost then
18 wd.areaofeffect = wd.areaofeffect + (valuemetalcost * 0.1) 20 wd.areaofeffect = wd.areaofeffect + (valuemetalcost * 0.1)
19 end 21 end
20 if wd.weapontype == "Cannon" then 22 if wd.weapontype == "Cannon" then
21 if wd.weaponvelocity and valuemetalcost then 23 if wd.weaponvelocity and valuemetalcost then
22 wd.weaponvelocity = wd.weaponvelocity + (valuemetalcost * 10) 24 wd.weaponvelocity = wd.weaponvelocity + (valuemetalcost * 10)
23 end 25 end
24 end 26 end
25 if wd.range and valuemetalcost then 27 if wd.range and valuemetalcost then
26 wd.range = wd.range + (valuemetalcost * 10) 28 wd.range = wd.range + (valuemetalcost * 10)
27 end 29 end
28 if wd.shieldpower and valuemetalcost then 30 if wd.shieldpower and valuemetalcost then
29 wd.shieldpower = wd.shieldpower + valuemetalcost 31 wd.shieldpower = wd.shieldpower + valuemetalcost
30 end 32 end
31 if wd.flighttime and valuemetalcost then 33 if wd.flighttime and valuemetalcost then
32 wd.flighttime = wd.flighttime + (valuemetalcost * 10) 34 wd.flighttime = wd.flighttime + (valuemetalcost * 10)
33 end 35 end
34 if wd.reloadtime and valuemetalcost then 36 if wd.reloadtime and valuemetalcost then
35 if wd.reloadtime > (valuemetalcost * 0.005) then 37 if wd.reloadtime > (valuemetalcost * 0.005) then
36 wd.reloadtime = wd.reloadtime - (valuemetalcost * 0.005) 38 wd.reloadtime = wd.reloadtime - (valuemetalcost * 0.005)
37 else 39 else
38 wd.reloadtime = 0.001 40 wd.reloadtime = 0.001
39 end 41 end
40 end 42 end
41 if wd.damage and valuemetalcost and wd.damage.default then 43 if wd.damage and valuemetalcost and wd.damage.default then
42 wd.damage.default = wd.damage.default + (valuemetalcost * 10) 44 wd.damage.default = wd.damage.default + (valuemetalcost * 10)
43 end 45 end
44 end 46 end
45 end 47 end
46 end 48 end
47 49 } } } [/q]
50 [/spoiler]