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:
@@ -178,7 +178,9 @@ class SquadronDialog(QDialog):
|
||||
if self.check_disabled_button_states(self.toggle_leave_button, index):
|
||||
return
|
||||
pilot = self.squadron_model.pilot_at_index(index)
|
||||
self.toggle_leave_button.setEnabled(True)
|
||||
self.toggle_leave_button.setEnabled(
|
||||
not pilot.on_leave or self.squadron_model.squadron.has_unfilled_pilot_slots
|
||||
)
|
||||
self.toggle_leave_button.setText(
|
||||
"Return from leave" if pilot.on_leave else "Send on leave"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user