Narks
Vastly intelligent whale-like being from the stars
- Reaction score
- 90
yeah so like, I want to use Tomes of Damage to add / remove natural damage to stuff
so like, i would have a set of tomes of damage items, like this:
Damage +1
Damage +2
Damage +4
Damage +8
Damage +16
Damage +32
Damage +64
Damage +128
Damage -1
Damage -2
Damage -4, etc and so on until i hit a nice cap
so, how do I write the algorithm that figures out which tomes to add to a unit when I specify how much damage i want to add or remove from the unit
so like, i would have a set of tomes of damage items, like this:
Damage +1
Damage +2
Damage +4
Damage +8
Damage +16
Damage +32
Damage +64
Damage +128
Damage -1
Damage -2
Damage -4, etc and so on until i hit a nice cap
so, how do I write the algorithm that figures out which tomes to add to a unit when I specify how much damage i want to add or remove from the unit