SKRen

Mob Spawn test

Sep 26th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. !M_FAMILIES{'blank'=0, 'vermin'=1, 'goblin'=2, 'undead'=3, 'demon(lesser)'=4, demon(greater)=5}
  2.  
  3.  
  4. class Region
  5. @maps[]={}
  6. @population[]={}
  7. @threat
  8. end
  9.  
  10. class Level
  11. @depth
  12. @map[][]
  13.  
  14. def Spawn(region, map
  15. M_TABLE[rand 0..5].threat_table[rand region.threat-3..region.threat+3]
  16.  
  17. end
  18.  
Advertisement
Add Comment
Please, Sign In to add comment