Skip to content

Clarify resistance factor calculation in getElementResistance() #121

@muzsor

Description

@muzsor

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions