From 0a8934c974602cf1f6327db72d1a03fa0116a083 Mon Sep 17 00:00:00 2001 From: Thefeli73 Date: Sun, 4 Oct 2020 17:54:10 +0200 Subject: [PATCH] testing buildings in develop --- main.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 5a29db8..70d74e9 100644 --- a/main.py +++ b/main.py @@ -270,13 +270,11 @@ def something_needs_attention(): def develop_society(): state = game_layer.game_state - if len(game_layer.game_state.residences) < 4: + if len(state.residences) < 5: build("Apartments") - elif len(game_layer.game_state.utilities) <1: - game_layer.place_foundation((3,6), "WindTurbine") - elif (state.utilities[0].build_progress < 100): - game_layer.build((3,6)) - elif state.funds > 25000 and len(game_layer.game_state.residences) < 7: + elif len(state.utilities) < 1: + build("WindTurbine") + elif state.funds > 25000 and len(game_layer.game_state.residences) < 11: build("HighRise") else: game_layer.wait()