ID:157280
 
Say I have certain areas where different enemies can come out from to battle. What would be the best way to handle the stats they have based on the level they are? Since the enemies are picked from a list, I was thinking of defining the level the enemy is in the list and then determining their stats based on what level they are but I'm not sure.
You can always pass it in an argument when creating a path and letting New() focus on changing the value:
new /path(loc, level)

/npc/Monsters
New(location, level = 0)
src.strength *= level
src.defense = src.strength - 2*level

Etc.