From 882105f571231acd562aa403fc4767585f70ac54 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 22:27:58 +0400 Subject: test(ui): verify targeter sphere stays stable across damage stages --- crates/fparkan-runtime/src/projectile.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/fparkan-runtime/src/projectile.rs') diff --git a/crates/fparkan-runtime/src/projectile.rs b/crates/fparkan-runtime/src/projectile.rs index 66cdbc8b..dd3a857d 100644 --- a/crates/fparkan-runtime/src/projectile.rs +++ b/crates/fparkan-runtime/src/projectile.rs @@ -738,6 +738,7 @@ mod tests { ) .unwrap(); let plant = handle_by_original_id(&engine.world, OriginalObjectId(5)).unwrap(); + let intact_bounds = crate::cockpit_instruments::instrument_bounds(&engine, 5).unwrap(); let table = engine .loaded .as_mut() @@ -794,6 +795,10 @@ mod tests { crate::cockpit_instruments::instrument_node_states(&engine, plant) .any(|state| state == ((0, 1), Some(1))) ); + assert_eq!( + crate::cockpit_instruments::instrument_bounds(&engine, 5), + Some(intact_bounds) + ); assert_eq!( crate::control_node_provider_row(table, 3) .unwrap() -- cgit v1.2.3