Flyffulator icon indicating copy to clipboard operation
Flyffulator copied to clipboard

Clarify resistance factor calculation in getElementResistance()

Open muzsor opened this issue 7 months ago • 1 comments

I would like to confirm whether the resistance factor calculated in the getElementResistance() function is implemented as intended.

When retrieving a monster's resistance factor, the values are typically 0.3, 0, or -0.3. However, in the getElementResistance() function, these values are divided by 100 (-0.003 to 0.003), resulting in a final resistance factor between approximately 0.997 and 1.003.

Image

Could you please help confirm whether this is the intended behavior? Based on initial expectations, it seems the resistance factor might have been intended to fall within a range of 0.7 to 1.3 instead. A review of the scaling logic would be appreciated to ensure the calculations are correct.

Image

Thank you!

muzsor avatar Jun 19 '25 06:06 muzsor

Thanks for the issue, yes it seems that the element resistance is multiplied by 100 first in the game, will update this accordingly

Frostiae avatar Jun 19 '25 06:06 Frostiae