diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-05-15 23:15:36 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-05-15 23:15:36 +0200 |
commit | 27499d0f466e0405dba10f8f5b98533beead1c9e (patch) | |
tree | 92db37910306050863ca648541ba4fa46f2d4f93 /src/json.rs | |
parent | 4c0eed0ed7e7cc0fcec60624c0a0251a9e525fb1 (diff) |
Additional code and bug fixes to help end to end tests
Diffstat (limited to 'src/json.rs')
-rw-r--r-- | src/json.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.rs b/src/json.rs index 4253a19..239a351 100644 --- a/src/json.rs +++ b/src/json.rs @@ -140,7 +140,7 @@ impl State { fn opponent(&self) -> &Player { self.players.iter() - .filter(|p| p.player_type != 'B') + .filter(|p| p.player_type == 'B') .next() .expect("Opponent character did not appear in state.json") } @@ -173,7 +173,7 @@ impl BuildingBlueprint { engine::settings::BuildingSettings { price: self.price, health: self.health, - construction_time: self.construction_time, + construction_time: self.construction_time-2, weapon_damage: self.weapon_damage, weapon_speed: self.weapon_speed, weapon_cooldown_period: self.weapon_cooldown_period, |