diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-26 16:45:39 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-26 16:45:39 +0300 |
| commit | c4baa5aea1abac26779ec5075232dba724ab6630 (patch) | |
| tree | 63b98b0a738e0426ef2d58e3edd038d60380dc7b /apps/fparkan-game/src/projectile_render.rs | |
| parent | c568357edf3c651ca0e16af27491be28ab1e0262 (diff) | |
| download | fparkan-c4baa5aea1abac26779ec5075232dba724ab6630.tar.xz fparkan-c4baa5aea1abac26779ec5075232dba724ab6630.zip | |
fix(combat): recognize hits absorbed by shields
Use the same impact result for manual fire and autonomous weapons. A shield that spends its charge and absorbs a whole shot completes the impact without reporting an unavailable target. Keep the existing hull damage API for callers that only need remaining health.
Checked in a window on the stock Two Fortresses map. The laser first ended at the shield and then reduced hull health after the sector was depleted. At 180 seconds of AutoDemo the false unavailable reports disappear and the destruction sequence is identical.
Diffstat (limited to 'apps/fparkan-game/src/projectile_render.rs')
0 files changed, 0 insertions, 0 deletions
