Expected: The drain ability only takes from the base stat, and the effect of the potion is re-calculated based on that change.
Occurs: When the status effect is active, the enemy attempts to drain the status effect, and the effect is multiplied. The drain also takes the modified stat.
Issue:Explosive stat growth
Expected: The drain ability only takes from the base stat, and the effect of the potion is re-calculated based on that change.
Occurs: When the status effect is active, the enemy attempts to drain the status effect, and the effect is multiplied. The drain also takes the modified stat.
Interesting. That reduce function asks every status effect if it wants to modify a stat, so it should always tell you the correct value (taking any changes in the base stat into account).
If I had to guess, I bet I’m reading the effective stat value, then writing that to the base value...
Interesting. That reduce function asks every status effect if it wants to modify a stat, so it should always tell you the correct value (taking any changes in the base stat into account).
If I had to guess, I bet I'm reading the *effective* stat value, then writing that to the base value...
Issue:Explosive stat growth
Expected: The drain ability only takes from the base stat, and the effect of the potion is re-calculated based on that change.
Occurs: When the status effect is active, the enemy attempts to drain the status effect, and the effect is multiplied. The drain also takes the modified stat.
I have a sneeking suspision it’s a by product of this reduce function, But I don’t know.
Edit, This is in creture.ts
It isn’t just the drain attack. Any attack on a modified stat will add to the base stat.
Interesting. That reduce function asks every status effect if it wants to modify a stat, so it should always tell you the correct value (taking any changes in the base stat into account).
If I had to guess, I bet I’m reading the effective stat value, then writing that to the base value...