CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
9.92k stars 4.08k forks source link

Break fake parts when main part breaks #74615

Closed anothersimulacrum closed 1 week ago

anothersimulacrum commented 1 week ago

Summary

Bugfixes "Break fake vehicle parts when the real part breaks"

Purpose of change

When a fake part is bashed, it bashes the main part. However, this doesn't update the fake part, and so when the main part breaks, it can result in a still functional fake part.

Fixes https://github.com/CleverRaven/Cataclysm-DDA/issues/74307

Describe the solution

Break the fake part when the main part breaks.

Describe alternatives you've considered

Testing

Turn a car 45 degrees, bash the fake doors. See they break when the real door breaks.

Additional context