Changeset 3326
- Timestamp:
- 11/29/08 22:38:45 (5 weeks ago)
- Location:
- trunk/mods/ca/LuaRules/Gadgets
- Files:
-
- 2 modified
-
planetwars.lua (modified) (1 diff)
-
unit_start_boost.lua (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mods/ca/LuaRules/Gadgets/planetwars.lua
r3324 r3326 48 48 end 49 49 50 if (m.unitname == 'armcom' or m.unitname == 'corcom') then51 GG.boostHandler.AddBoost(uid)52 end50 --if (m.unitname == 'armcom' or m.unitname == 'corcom') then 51 -- GG.boostHandler.AddBoost(uid) 52 --end 53 53 54 54 break -
trunk/mods/ca/LuaRules/Gadgets/unit_start_boost.lua
r3324 r3326 53 53 -------------------------------------------------------------------------------- 54 54 55 56 function gadget:Initialize() 57 -- self linking 58 GG['boostHandler'] = {} 59 GG['boostHandler'].AddBoost = AddBoost 60 end 61 62 55 63 local function AddBoost(unitID, newBoost, newBoostMax) 56 64 local tm = teamMetal[Spring.GetUnitTeam(unitID)] … … 58 66 boostMax[unitID] = newBoostMax or tm 59 67 SendToUnsynced("UpdateBoost", unitID, boost[unitID], boostMax[unitID]) 60 end61 62 63 function gadget:Initialize()64 -- self linking65 GG['boostHandler'] = {}66 GG['boostHandler'].AddBoost = AddBoost67 68 end 68 69