From 7c6ab4c1f5924084c80541b5b29dea1e8cb49850 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Thu, 30 Nov 2017 20:37:31 +0100 Subject: [PATCH] fix: no need for WW Building Plan to start building a WW #337 --- GameEngine/Building.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GameEngine/Building.php b/GameEngine/Building.php index da5ac596..19239a2b 100755 --- a/GameEngine/Building.php +++ b/GameEngine/Building.php @@ -87,9 +87,9 @@ class Building { // check if we should allow building the WW this high if ( $wwHighestLevelFound >= 50 ) { - $needed_plan = 1; + $needed_plan = 2; } else { - $needed_plan = 0; + $needed_plan = 1; } // count building plans @@ -118,7 +118,7 @@ class Building { } } - $cached = $wwbuildingplan > $needed_plan; + $cached = $wwbuildingplan >= $needed_plan; } else { // no need for building plans, we can still upgrade WW $cached = true;