[1.13d] Double fill potion mechanic

This forum is for discussions on how to edit what can not be edited through the txt files, needless to say this isn't about battle net hacking.

Moderators: Nefarius, Havvoric

User avatar
imakeigloos_pat
Posts: 91
Joined: Wed Dec 10, 2008 12:13 am

[1.13d] Double fill potion mechanic

Post by imakeigloos_pat » Tue Apr 03, 2018 10:06 pm

Hello,
I've done some code editing myself, both from scratch and porting others work in other patches but I am stuck on this one.

I would like that health and mana potions do the 'critical strike' 100% of the time a potion is used. I understand from the related thread that two integers are compared, one assigned random and one taken from your stats. I would like that the random integer is always 0 or 1 or whatever so that it forces the potions to always fill double. Or perhaps there is an easier way to just skip the code and do the double fill immediately, I don't really know how to approach this and would appreciate some help.

Related thread: viewtopic.php?f=8&t=40504
More info: https://diablo2.diablowiki.net/Potions# ... ill_Potion

Thanks,
Patrik

Return to “Code Editing”