MasterMind
Member
Yes it's me again. I'm trying to use hashes to apply certain numbers to certain enemies. For example, let's say I have a variable called points. I would like this variable to increase by 3 for every ghost defeated, but 10 for every goblin, and 15 for every daemon. And if an enemy isn't defined with a certain value, how would I go about setting a default?
Would it be like this?
Would it be like this?
Code:
POINTS = {enemy.id => amount, enemy.id => amount}