feat(ai): ✨ add default difficulty threshold to test states
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
7ad46c48c1
commit
3ec49e76e7
1 changed files with 5 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue