Huuuuum I have look at the code. And to work, this function should detect the '4' has the regen value (this item regen 4 mana points every 5 sec).
So in the bonus table, it will create an index named 'Équipé : Rend XX points de mana toutes les 5 secondes.'. XX corresponding to regen value. So every item having a regen value will be add there. At the end, we will have the sum of all the different regen values (the number that we want).
Now the problem is :
the different functions create a index for each different regen value and add the time.
For example, you have 3 different items like that:
- Code: Select all
Equip: Restores 10 mana per 5 sec.
Normally you have that:
1st item : create a field 'Equip: Restores XX mana per 5 sec.' in the bonus table and put the value 10 inside.
2nd item : see that the field 'Equip: Restores XX mana per 5 sec.' exists and adds 10 to the value. So we have 'Equip: Restores XX mana per 5 sec.'
with 20.
3rd : see that the field 'Equip: Restores XX mana per 5 sec.' exists and adds 10 to the value. So we have 'Equip: Restores XX mana per 5 sec.'
with 30.
So in the bonus table, we should obtain :
- Code: Select all
Equip: Restores 30 mana per 5 sec
Now how it's working right now:
1st item : create a field 'Equip: Restores 10 mana per XX sec.' in the bonus table and put the value 5 inside.
2nd item : see that the field 'Equip: Restores 10 mana per XX sec.' exists and adds 5 to the value. So we have 'Equip: Restores 10 mana per XX sec.'
with 10.
3rd : see that the field 'Equip: Restores 10 mana per XX sec.' exists and adds 5 to the value. So we have 'Equip: Restores 10 mana per XX sec.'
with 15.
And so we obtain :
- Code: Select all
Equip: Restores 10 mana per 15 sec
Imagine that you have 3 items with 3 different values for the regen and you obtain my character page: 3 different lines
This is a big problem because it's a misreading of information. The function
getStartofModifierMana should report the first number in the line. And in fact, when I'm reading the code, it should do that (the code looks correct for me). The fact is that this function (in french at least), doesn't report the first numeric, but the 2nd one. Very strange.
I don't understand what is going on.