CleverRaven / CleverRaven/Cataclysm-DDA

NPC don't defend themselves while PC sleeps

Open
#76,150 1 comment 1 reaction 0 assignees View on GitHub

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

Springville-trimmed.tar.gz

Steps to reproduce
  1. Load the provided save file
  2. Debug spawn a goose (mon_goose) in the hut to the south
  3. Press $ and try to fall asleep a couple of times
  4. Remove your blindfold and go check on the NPCs in the hut
  5. Look how they massacred my boys :(

image

Expected behavior

I expected that two NPCs in riot armor would be able to fend off a goose without being killed.

Screenshots

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.