From 3ec49e76e7978c89af2bdf79d0968db5c3b9b258 Mon Sep 17 00:00:00 2001 From: Natalie Date: Sat, 18 Apr 2026 21:15:20 -0700 Subject: [PATCH] =?UTF-8?q?feat(ai):=20=E2=9C=A8=20add=20default=20difficu?= =?UTF-8?q?lty=20threshold=20to=20test=20states?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- src/simulator/crates/mc-ai/tests/tactical_port_regression.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/simulator/crates/mc-ai/tests/tactical_port_regression.rs b/src/simulator/crates/mc-ai/tests/tactical_port_regression.rs index 24cd132c..4af403ab 100644 --- a/src/simulator/crates/mc-ai/tests/tactical_port_regression.rs +++ b/src/simulator/crates/mc-ai/tests/tactical_port_regression.rs @@ -162,6 +162,7 @@ fn two_player_state() -> TacticalState { map: small_map(), players: vec![player0_fixture(), player1_fixture()], unit_catalog: Vec::new(), + difficulty_threshold_mult: 1.0, } } @@ -194,6 +195,7 @@ fn settler_only_state() -> TacticalState { strategic_resources: Vec::new(), }], unit_catalog: Vec::new(), + difficulty_threshold_mult: 1.0, } } @@ -242,6 +244,7 @@ fn production_state() -> TacticalState { strategic_resources: Vec::new(), }], unit_catalog: Vec::new(), + difficulty_threshold_mult: 1.0, } } @@ -321,6 +324,7 @@ fn tactical_state_empty_roundtrip() { map: TacticalMap { width: 0, height: 0, tiles: vec![] }, players: vec![], unit_catalog: Vec::new(), + difficulty_threshold_mult: 1.0, }; let json = serde_json::to_string(&state).expect("serialize"); let back: TacticalState = serde_json::from_str(&json).expect("deserialize"); @@ -350,6 +354,7 @@ fn tactical_state_with_100_tile_map_roundtrip() { map: TacticalMap { width: 10, height: 10, tiles }, players: vec![player0_fixture(), player1_fixture()], unit_catalog: Vec::new(), + difficulty_threshold_mult: 1.0, }; let json = serde_json::to_string(&state).expect("serialize"); let back: TacticalState = serde_json::from_str(&json).expect("deserialize");