Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The players innocent can get sanity #46

Open
prepper25 opened this issue Nov 10, 2016 · 1 comment
Open

The players innocent can get sanity #46

prepper25 opened this issue Nov 10, 2016 · 1 comment
Labels

Comments

@prepper25
Copy link
Collaborator

prepper25 commented Nov 10, 2016

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.

@AKMDM
Copy link
Owner

AKMDM commented Nov 13, 2016

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.

@prepper25 prepper25 changed the title The players can drop sanity The players can drop sanity bug Nov 16, 2016
@prepper25 prepper25 added the bug label Nov 16, 2016
@prepper25 prepper25 changed the title The players can drop sanity bug The players can drop sanity Nov 16, 2016
@prepper25 prepper25 changed the title The players can drop sanity The players innocent can get sanity Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants