Concurrent removal of vehicle parts may re-target the second removal
Describe the bug
When an NPC is deconstructing a vehicle and a second character (eg, the player) is concurrently removing a part, if the NPC finishes first, the second character may end up removing a part other than the one they targeted as a result of the unexpected change in vehicle composition. This does not require the targeted parts to be in the same space.
Attach save file
Despite my effort to save immediately before the anomaly, this save appears to start either during or immediately after the bug. Try interrupting or consult the message log.
Both Yusuke Taylor and the PC are removing storage battery cases; Yusuke started a few seconds earlier. Seconds after Yusuke finishes removing his targeted battery case, the player removes a cargo carrier — which would normally take considerably more time.
Steps to reproduce
- Spawn a friendly NPC, an automatic tractor, an adjustable wrench and a hacksaw. Ensure characters have mechanics 2.
- Target one of the storage batteries or cases for vehicle deconstruction and put the NPC to work.
- Remove an identical storage battery or case on a tile that is below and to the right of (??) the NPC's targeted space.
- Observe potentially unexpected results.
Expected behavior
The target of a vehicle deconstruct action should not change unless that part is altered or destroyed by other events. Rather than targeting a part by number or reference, perhaps vehicle deconstruction should operate on a more stable coordinate+layer value?
Screenshots
Versions and configuration
- OS: Windows
- OS Version: 10.0.26200.9457 (25H2)
- Game Version: cdda-experimental-2026-09-24-1634-dirty [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [ Dark Days Ahead [dda] (), Disable NPC Needs [no_npc_food] (), Portal Storms Ignore NPCs [personal_portal_storms] (), Bionic Slots [cbm_slots] () ]
Additional context
No response
Source: CleverRaven/Cataclysm-DDA