From 8796d629e8e89f770b26582229ea52c0fc0437b8 Mon Sep 17 00:00:00 2001 From: Raffson Date: Sun, 4 Aug 2024 02:37:43 +0200 Subject: [PATCH] Fix probable bug in procurement --- game/procurement.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/procurement.py b/game/procurement.py index 5f0fdc8e..281bb429 100644 --- a/game/procurement.py +++ b/game/procurement.py @@ -85,8 +85,8 @@ class ProcurementAi: ground = 1 - air weighted_investment = aircraft_investment * air + armor_investment * ground if weighted_investment == 0: - # Turn 0 or all units were destroyed. Either way, split 30/70. - return ground + # Turn 0 or all units were destroyed. + return balance / 100.0 # the more planes we have, the more ground units we want and vice versa ground_unit_share = aircraft_investment * air / weighted_investment