- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I tried using the binary count off system for bonus stats (attack speed, spell resistance, and mana). The only one that seems to work is attack speed--the rest don't stack or fail to.
But before that, I use the manual of health tome to give permanent health bonuses. In this function below, I should be adding one manual of health tome (+1 health) every call, so my total hero's health should increase by +100 after 100 calls to this function. This works, but as soon as I add an additional stat to the loop (spell resistance), my hero gains 7 less health everytime. This doesn't make any sense, because the loop structure is the SAME as for attack speed, I just copied and pasted and replaced the names.
So why is this function producing the correct health (+100) but the extended one failing to do so (it adds only 93 health and not 100, even though I call it 100 times).
I tried using the binary count off system for bonus stats (attack speed, spell resistance, and mana). The only one that seems to work is attack speed--the rest don't stack or fail to.
But before that, I use the manual of health tome to give permanent health bonuses. In this function below, I should be adding one manual of health tome (+1 health) every call, so my total hero's health should increase by +100 after 100 calls to this function. This works, but as soon as I add an additional stat to the loop (spell resistance), my hero gains 7 less health everytime. This doesn't make any sense, because the loop structure is the SAME as for attack speed, I just copied and pasted and replaced the names.
So why is this function producing the correct health (+100) but the extended one failing to do so (it adds only 93 health and not 100, even though I call it 100 times).
Last edited: