The players innocent can get sanity
prepper25 opened this issue · 1 comments
This issue happen constantly with innocents they take sanity even if they aren't selected like murd acquiring and accumulating sanity, one method is killing rats or just wait to accumulate sanity again (loop) and dropping the sanity through such as elements.
One solution is add flags like undroppable and give the sanity or madmeter only for the murder or class.
Note: removing that loop should be reduce part of the lag of the game.
This commit adds the INVENTORY.UNDROPPABLE flag to MadMeter, preventing players from dropping sanity.
To prevent innocents from being given this item, the best options would be to check if the player is the murderer before giving them sanity or removing the item from the innocent's inventory constantly. Creating a unique class for the murderer might be too difficult to implement, even with morphed player classes because they won't be able to pick up items or switch weapons properly.