CleverRaven / CleverRaven/Cataclysm-DDA
You can aim at monsters even if you can't see them
- Dominant language
- C++
- Stars
- 13.2k
- Forks
- 4.6k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 205
Description
### Describe the bug
As title says
### Attach save file
N/A
### Steps to reproduce
Spawn debug monster in the place you can't see it
Aim a gun where the monster supposed to be
See that aiming reveal the enemy that you should not be able to target, and even allows you to somewhat succesfully shoot it
### Expected behavior
UI not changing it's values if you aim at monster you can't see
### Screenshots
Me aiming at debug monster

Me aiming one tile right to debug monster

### Versions and configuration
- OS: Windows
- OS Version: 10.0.19045.5131 (22H2)
- Game Version: 9ac7d05 [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],
Magiclysm [magiclysm]
]
### Additional context
The only i know is that it does not happen in calculate_aim_cap() as i initially thought
Contributor guide
Research direction
Start by reproducing the issue with a debug monster placed outside the visible area, following the listed aiming steps. Trace the aiming and targeting path around calculate_aim_cap(), which the report says is not the source. Done means aiming at an unseen monster leaves the UI unchanged and does not allow the monster to be successfully targeted or shot.
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