ForbodingAngel

Untitled

Apr 3rd, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. -- Give a trickle of resources to teams
  2. if n%32 == 4 then
  3. local mexIncome = getMexIncomes()
  4. for _,i in ipairs(Spring.GetTeamList()) do
  5. local _,_,_,_,_,allyTeamID = Spring.GetTeamInfo(i)
  6. if allyTeamID then -- don't give free stuff to GAIA
  7. Spring.AddTeamResource(i,"e",1)
  8. Spring.AddTeamResource(i,"m",0.5 + mexIncome[allyTeamID])
  9. end
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment