mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix AAA Flak generator using wrong index
- Fixes #1519 as the Opel Blitz unit generator was using the index without incrementing it
This commit is contained in:
parent
91daabc9d2
commit
b31c09c4ff
@ -61,6 +61,7 @@ Saves from 4.0.0 are compatible with 4.1.0.
|
|||||||
* **[Mission Generation]** Prevent the creation of a transfer order with 0 units for a rare situtation when a point was captured.
|
* **[Mission Generation]** Prevent the creation of a transfer order with 0 units for a rare situtation when a point was captured.
|
||||||
* **[Mission Generation]** Planned transfers which will be impossible after a base capture will no longer prevent the mission result submit.
|
* **[Mission Generation]** Planned transfers which will be impossible after a base capture will no longer prevent the mission result submit.
|
||||||
* **[Mission Generation]** Fix occasional KeyError preventing mission generation when all units of the same type in a convoy were killed.
|
* **[Mission Generation]** Fix occasional KeyError preventing mission generation when all units of the same type in a convoy were killed.
|
||||||
|
* **[Mission Generation]** Fix for AAA Flak generator using Opel Blitz preventing the mission from being generated because duplicate unit names were used.
|
||||||
* **[Mission Generation]** Fixed a potential bug with laser code generation where it would generate invalid codes.
|
* **[Mission Generation]** Fixed a potential bug with laser code generation where it would generate invalid codes.
|
||||||
* **[UI]** Statistics window tick marks are now always integers.
|
* **[UI]** Statistics window tick marks are now always integers.
|
||||||
* **[UI]** Statistics window now shows the correct info for the turn
|
* **[UI]** Statistics window now shows the correct info for the turn
|
||||||
|
|||||||
@ -82,8 +82,10 @@ class FlakGenerator(AirDefenseGroupGenerator):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Some Opel Blitz trucks
|
# Some Opel Blitz trucks
|
||||||
|
index = 0
|
||||||
for i in range(int(max(1, 2))):
|
for i in range(int(max(1, 2))):
|
||||||
for j in range(int(max(1, 2))):
|
for j in range(int(max(1, 2))):
|
||||||
|
index += 1
|
||||||
self.add_unit(
|
self.add_unit(
|
||||||
Unarmed.Blitz_36_6700A,
|
Unarmed.Blitz_36_6700A,
|
||||||
"BLITZ#" + str(index),
|
"BLITZ#" + str(index),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user