CleverRaven / CleverRaven/Cataclysm-DDA
NPC don't defend themselves while PC sleeps
Open
Nobody has claimed this yet.
(S2 - Confirmed)
NPC / Factions
- Dominant language
- C++
- Stars
- 13.2k
- Forks
- 4.6k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 205
Description
Describe the bug
It seems like that NPC are unable to defend themselves while the player character is sleeping.
A goose was able to kill a companion, even if the companion was healthy, armed, and armored.
Attach save file
Steps to reproduce
- Load the provided save file
- Debug spawn a goose (
mon_goose) in the hut to the south - Press
$and try to fall asleep a couple of times - Remove your blindfold and go check on the NPCs in the hut
- Look how they massacred my boys :(
Expected behavior
I expected that two NPCs in riot armor would be able to fend off a goose without being killed.
Screenshots
Versions and configuration
- OS: Linux
- OS Version: LSB Version: n/a; Distributor ID: openSUSE; Description: openSUSE Tumbleweed; Release: 20240825; Codename: n/a;
- Game Version: cdda-experimental-2024-08-09-0203 61e0526 [64-bit]
- Graphics Version: Tiles
- Game Language: English [en]
- Mods loaded: [
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Portal Storms Ignore NPCs [personal_portal_storms],
Slowdown Fungal Growth [no_fungal_growth]
]
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by loading the attached Springville-trimmed.tar.gz save and reproducing the goose attack while the player sleeps. Trace NPC combat behavior during player sleep and verify that armed, armored NPCs can defend themselves before considering the issue done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100