From 27499d0f466e0405dba10f8f5b98533beead1c9e Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Tue, 15 May 2018 23:15:36 +0200 Subject: Additional code and bug fixes to help end to end tests --- src/json.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/json.rs') 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, -- cgit v1.2.3