mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix probable bug in procurement
This commit is contained in:
parent
9dba85e95b
commit
8796d629e8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user