mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Cap squadron size, limit replenishment rate.
This caps squadrons to 12 pilots and limits their replenishment rate to 1 pilot per turn. Should probably make those values configurable, but they aren't currently. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1136
This commit is contained in:
@@ -48,10 +48,10 @@ class SquadronDelegate(TwoColumnRowDelegate):
|
||||
return self.squadron(index).nickname or ""
|
||||
elif (row, column) == (1, 1):
|
||||
squadron = self.squadron(index)
|
||||
alive = squadron.number_of_living_pilots
|
||||
active = len(squadron.active_pilots)
|
||||
available = len(squadron.available_pilots)
|
||||
return f"{alive} pilots, {active} active, {available} unassigned"
|
||||
on_leave = len(squadron.pilots_on_leave)
|
||||
return f"{active} active, {available} unassigned, {on_leave} on leave"
|
||||
return ""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user