Page 1 of 1

Drugs Don't Work

Posted: Sun Feb 14, 2021 6:55 pm
by Magicono43
Simple as the title, the 4 drug items don't actually put on their intended incumbent effects when used. The reason for this appears to be a simple mathematical error.
When trying to use drug items without fixed math value
When trying to use drug items without fixed math value
Capture.JPG (26.77 KiB) Viewed 230 times
The underlined value is currently 66 in the current fork, if you change to 58 the drug effects work
The underlined value is currently 66 in the current fork, if you change to 58 the drug effects work
Capture1.JPG (59.23 KiB) Viewed 230 times
As the second image says, the drug items will properly apply their poison effects if you turn the 66 value to 58, because at 66 the key value goes outside the range of the enum values and gets no valid effect key.

Re: Drugs Don't Work

Posted: Sun Feb 14, 2021 9:56 pm
by Interkarma
Thanks for information. I now also have the Verve song stuck in my head. :)

I'll move this to bug reports and take a look to confirm later. Cheers!

Re: Drugs Don't Work

Posted: Sun Feb 14, 2021 10:08 pm
by Magicono43
Interkarma wrote: Sun Feb 14, 2021 9:56 pm Thanks for information. I now also have the Verve song stuck in my head. :)

I'll move this to bug reports and take a look to confirm later. Cheers!
No problem. If you test it yourself, just make sure to setlevel to something higher than one or you might be confused from the level 1 protection, lol.