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
|
ground = 1 - air
|
||||||
weighted_investment = aircraft_investment * air + armor_investment * ground
|
weighted_investment = aircraft_investment * air + armor_investment * ground
|
||||||
if weighted_investment == 0:
|
if weighted_investment == 0:
|
||||||
# Turn 0 or all units were destroyed. Either way, split 30/70.
|
# Turn 0 or all units were destroyed.
|
||||||
return ground
|
return balance / 100.0
|
||||||
|
|
||||||
# the more planes we have, the more ground units we want and vice versa
|
# the more planes we have, the more ground units we want and vice versa
|
||||||
ground_unit_share = aircraft_investment * air / weighted_investment
|
ground_unit_share = aircraft_investment * air / weighted_investment
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user