CleverRaven / CleverRaven/Cataclysm-DDA

My followers are defenseless while they are eating

Open
#54,573 0 comments 0 reactions 0 assignees View on GitHub
<Bug> Mechanics: Character / Player NPC / Factions
Dominant language
C++
Stars
13.1k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
200

Description

### Describe the bug

If you enable NPC needs, your followers will sometimes eat. If the player is attacked while she is eating, he is interrupted. This does not apply to NPC followers - they just stand there and allow the zombies to tear them into pieces.

### Steps to reproduce

1. Load the attached save: [test.zip](https://github.com/CleverRaven/Cataclysm-DDA/files/7898749/test.zip)
2. Wait
3. Your follower eats deluxe vegetarian beans and rice (consume time: 2min 30s)
4. Watch the zombie kill your follower without him fighting back

### Expected behavior

When your follower is attacked, she or he should stop eating and start fighting back

### Screenshots

_No response_

### Versions and configuration

- OS: Linux
- OS Version: LSB Version: :core-4.1-amd64:core-4.1-noarch; Distributor ID: Fedora; Description: Fedora release 34 (Thirty Four); Release: 34; Codename: ThirtyFour;
- Game Version: d740104 [64-bit]
- Graphics Version: Tiles
- Game Language: English [en]
- Mods loaded: [
Dark Days Ahead [dda]
]

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by loading the attached test.zip save and reproducing the follower eating while the player is attacked. Trace the NPC follower eating and combat behavior; done means an attacked follower stops eating and fights back.

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.