Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if VFS.FileExists("mission.lua") then -- this is a mission, we just want to set starting storage
- if not gadgetHandler:IsSyncedCode() then
- return false -- no unsynced code
- end
- function gadget:GameFrame(n)
- if n == 0 then
- for _, teamID in ipairs(Spring.GetTeamList()) do
- Spring.SetTeamResource(teamID, "es", START_STORAGE + OVERDRIVE_BUFFER)
- Spring.SetTeamResource(teamID, "ms", START_STORAGE)
- end
- end
- end
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement