-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
warn player before drinking water not known to be clean #36065
warn player before drinking water not known to be clean #36065
Conversation
Co-Authored-By: Anton Burmistrov <[email protected]>
Co-Authored-By: Anton Burmistrov <[email protected]>
This causes an NPC AI test to fail of all things, but it might be indicative of a problem, can NPCs drink not-clean water after this change? |
I'm going to try to insert this as its own function instead of calling BLECH and bypassing individual BLECH sections. That might solve the problem if my changes caused it to begin with. |
I think I fixed it. Now it only triggers if used by the player, not by NPCs (who do not really need warnings anyway). |
Drink regular old "water"
Summary
SUMMARY: Interface "Adds warning when player tries to drink water that has not been purified."
Purpose of change
I always accidentally drink unclean water, but 99.9% of the time it makes no sense to do so since clean water is so easy to make. So I added this feature to save some folks the aggravation of having to deal with parasites for a week because they picked the wrong water.
Describe the solution
Creates prompt warning a player when he tries to drink water, kind of like drinking bleach, but less severe of a warning (different text) since "water" is not quite as bad as "bleach" for drinking.
Describe alternatives you've considered
Testing
Tried to drink water and clean water.
Additional context
I think I did the string_format right this time to make it translatable. Can someone confirm?