Purpeille

Purpeille

6.7k Downloads

Poison resistance mixin prevents further processing of poison logic by other mods

SilverAndro opened this issue ยท 6 comments

commented

This came up over discord from someone using RPGStats, because you fast cancel status effects on poison, the lv25 effect for rpgstats which is supposed to make you immune to poison never runs. https://github.com/acikek/purpeille/blob/fabric-1.19/src/main/java/com/acikek/purpeille/mixin/StatusEffectMixin.java

I think we both need to modify our mixins to use modifyarg on the damage call here? Im fairly sure that one is chainable which should allow our logic to work in tandem

commented

Hmm, nice catch. I'll see what I can do tonight if I have time. Is there any reasonable way to test compatibility though?

commented

Im working on pushing a version that should have a more compatible mixin rn, once thats out can just throw them together, /rpgcheat yourself magic 50 or something, and see if poison effects you or not.

commented
commented

Try this alpha version
718818c (kinda stole your code)

Tested in singleplayer. When player has magic 50, poison is negated, even when they're holding a Malaise item.

commented

Yep seems to be working for me as well, very cool!

And yeah that's why I linked it haha, figured it might be helpful, thanks much!