Absorption is infinite
Closed this issue · 1 comments
kanpov commented
Issue
As soon as you lose one of your absorption hearts, they immediately regenerate because the effect gets reapplied by the system.
Proposal
In GemAmuletConfig
, create a map of uponInsertionEffects
.
Create an ItemStackMixin
that checks if the item is an amulet and applies the uponInsertionEffects
.
kanpov commented
I'm going to go with a mixin-less approach because mixins require too much @Inject
s to cover all possible situations.
Instead, I'm going to store a flag initialized
in GemAmuletState
and, if it's false, set it to true and apply the onInsertEffects
.