CleverRaven / CleverRaven/Cataclysm-DDA

Exploit: You can reliably test water for parasites by checking the popup

Open
#54,097 8 comments 0 reactions 0 assignees View on GitHub
[C++] <Bug> <Exploit> Good First Issue Items: Food / Vitamins
Dominant language
C++
Stars
13.1k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
200

Description

### Describe the bug

You can avoid parasites by just checking if the popup warns you about it. If there is no popup, you know you can drink your toilet water safely, with the risks just being food poisoning.

### Steps to reproduce

See https://github.com/CleverRaven/Cataclysm-DDA/blob/7eac832b9241922dec92ad4dec9686ab6640061d/src/consumption.cpp#L825-L830

### Expected behavior

If an item *may* have parasites, regardless of it actually having some, display the warning. This can get annoying if you are dehydrated and the toilet water is your only way, so there should be an option to hide that popup for say 50 turns.

This looks easy enough to do for any new C++ contributor since it is only a few lines of code.

### Screenshots

_No response_

### Versions and configuration

- experimental

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start in src/consumption.cpp at lines 825-830 and reproduce drinking water that may contain parasites. Done means the warning appears whenever contamination is possible, while the proposed option can suppress repeated warnings for about 50 turns. No test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.