mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fixed : BMD_1 IFV missing from db. Fixed error preventing mission generation when the role of an unit can not be determined.
(cherry picked from commit 4112a86fe99b217dd2a4367866bea7b5ed274ac9)
This commit is contained in:
parent
b9ade2295e
commit
3902ab3375
@ -720,6 +720,7 @@ UNIT_BY_TASK = {
|
|||||||
Armor.IFV_BMP_2,
|
Armor.IFV_BMP_2,
|
||||||
Armor.IFV_BMP_3,
|
Armor.IFV_BMP_3,
|
||||||
Armor.IFV_BMP_3,
|
Armor.IFV_BMP_3,
|
||||||
|
Armor.IFV_BMD_1,
|
||||||
Armor.ZBD_04A,
|
Armor.ZBD_04A,
|
||||||
Armor.ZBD_04A,
|
Armor.ZBD_04A,
|
||||||
Armor.ZBD_04A,
|
Armor.ZBD_04A,
|
||||||
|
|||||||
@ -113,8 +113,10 @@ class Base:
|
|||||||
elif for_task == AirDefence:
|
elif for_task == AirDefence:
|
||||||
target_dict = self.aa
|
target_dict = self.aa
|
||||||
|
|
||||||
assert target_dict is not None
|
if target_dict is not None:
|
||||||
target_dict[unit_type] = target_dict.get(unit_type, 0) + unit_count
|
target_dict[unit_type] = target_dict.get(unit_type, 0) + unit_count
|
||||||
|
else:
|
||||||
|
logging.error("Unable to determine target dict for " + str(unit_type))
|
||||||
|
|
||||||
def commit_losses(self, units_lost: typing.Dict[typing.Any, int]):
|
def commit_losses(self, units_lost: typing.Dict[typing.Any, int]):
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user