Skip to content

Conversation

@LocalIdentity
Copy link
Contributor

The mod was scaling the more multiplier on the gloves incorrectly by adding another More multiplier mod instead of modifying the existing mod
This change also made me realise that we sometime incorrectly handle mods when the are 2 instances of them on an item
e.g. T1 Life + crafted hybrid life shows up as 2 mods on the item so we process them in 2 loops which results in the rounding being incorrect
Would have to somehow merge all similar mods on an item first then loop though them to fix it I think
Before:
image

After:
image

The mod was scaling the more multiplier on the gloves incorrectly by adding another More multiplier mod instead of modifying the existing mod
This change also made me realise that we sometime incorrectly handle mods when the are 2 instances of them on an item
e.g. T1 Life + crafted hybrid life shows up as 2 mods on the item so we process them in 2 loops which results in the rounding being incorrect
Would have to somehow merge all similar mods on an item first then loop though them to fix it I think
@LocalIdentity LocalIdentity added the bug: calculation Numerical differences label Jul 10, 2025
self.conditions = { }
end)

function ModStoreClass:ScaleAddMod(mod, scale)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this should just be ScaleMod or ScaleReplaceMod instead to be more clear.

@LocalIdentity LocalIdentity merged commit b1bdc19 into dev Jul 14, 2025
2 checks passed
@LocalIdentity LocalIdentity deleted the fix_runegraft-bound branch July 14, 2025 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: calculation Numerical differences

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants