From 00b96b09c322a0bc85c0a8e500787bc94cd4f828 Mon Sep 17 00:00:00 2001 From: Thefeli73 Date: Wed, 7 Oct 2020 06:52:30 +0200 Subject: [PATCH] fixes --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 2db088d..8397eb5 100644 --- a/main.py +++ b/main.py @@ -15,7 +15,7 @@ game_layer = GameLayer(api_key) use_regulator = False other_upgrade_threshold = 0.25 time_until_run_ends = 90 -money_reserve_multiplier = 1 +money_reserve_multiplier = 0.1 def main(): @@ -334,7 +334,7 @@ def tile_score(tile, radius): delta_x = abs(tile[0] - residence.X) delta_y = abs(tile[1] - residence.Y) distance = delta_x + delta_y - if distance <= radius: + if (distance <= radius) and not ("Park", "WindTurbine", "Mall.2" in residence.effects): affected_people += residence.current_pop affected_buildings += 1 return affected_people, affected_buildings