Advertisement
Guest User

Mutant Gangland - unit_types.lua

a guest
Oct 30th, 2013
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.50 KB | None | 0 0
  1. unit_type = {} -- table that holds both team's unit
  2. local teamOne = 1
  3. local teamTwo = 2
  4. unit_type[teamOne] = {} -- table for team 1
  5. unit_type[teamTwo] = {} -- table for team 2
  6.  
  7. self._teamOne_atlast = "Game/media/units/unit_atlast1.png"
  8. self._teamTwo_atlast = "Game/media/units/unit_atlast2.png"
  9.  
  10. unit_type[teamOne][1] = { name = "Scout", tex = 1, health = 4, min_range = 0, max_range = 1, mobility = 5, damage = 4, cost = 20, canCapture = true }
  11. unit_type[teamOne][2] = { name = "Chainsaw",  tex = 2, health = 7, min_range = 0, max_range = 1, mobility = 5, damage = 4, cost = 30, canCapture = true }
  12. unit_type[teamOne][3] = { name = "Rifle",  tex = 3, health = 7, min_range = 0, max_range = 1, mobility = 5, damage = 5, cost = 40, canCapture = false }
  13. unit_type[teamOne][4] = { name = "Rokkit",  tex = 4, health = 8, min_range = 1, max_range = 3, mobility = 4, damage = 6, cost = 120, canCapture = false }
  14.  
  15. unit_type[teamTwo][1] = { name = "Scout", tex = 5, health = 4, min_range = 0, max_range = 1, mobility = 5, damage = 4, cost = 15, canCapture = true }
  16. unit_type[teamTwo][2] = { name = "Chainsaw",  tex = 6, health = 7, min_range = 0, max_range = 1, mobility = 4, damage = 4, cost = 25, canCapture = true }
  17. unit_type[teamTwo][3] = { name = "Rifle",  tex = 7, health = 7, min_range = 0, max_range = 1, mobility = 5, damage = 5, cost = 35, canCapture = false }
  18. unit_type[teamTwo][4] = { name = "Rokkit",  tex = 8, health = 8, min_range = 1, max_range = 3, mobility = 4, damage = 6, cost = 100, canCapture = false }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement