X-maul
AKA: Demtrod
- Reaction score
- 201
I'm creating an income system that, surprisingly, gives resources to a player every 30th second.
My problem is that I want to increase the income value every time i train a unit:
like
Zerg +1
Marine +2
Marauder +3
..and so on..
But I want to keep it as simple as possible, so I want to give the marine unit type a value (1), so that I can just call that value everytime a unit is trained and increase by that value, instead of checking if it's a marine, marauder or zerg every time.
My problem is that I want to increase the income value every time i train a unit:
like
Zerg +1
Marine +2
Marauder +3
..and so on..
But I want to keep it as simple as possible, so I want to give the marine unit type a value (1), so that I can just call that value everytime a unit is trained and increase by that value, instead of checking if it's a marine, marauder or zerg every time.