feat: add configurable battle loss cooldown in Web 2.0.13
Web image / image (push) Waiting to run

This commit is contained in:
AttilaNet
2026-11-17 00:17:52 +08:00
parent 598bdf5c1c
commit b976151263
23 changed files with 297 additions and 43 deletions
+2 -2
View File
@@ -265,9 +265,9 @@ class ProgressionPages:
self.progression_team.addItem(team, team)
form.addRow("推进战斗队伍", self.progression_team)
for key, label, maximum in (("reserve_ti", "保留体力", 1_000_000_000), ("max_money", "单次交付金币上限(0=不交金币)", 1_000_000_000),
("stop_after_loss", "连续失败后停止次数", 999)):
("stop_after_loss", "连续失败后停止次数", 999), ("loss_retry_hours", "战败冷却时间(小时)", 168)):
widget = IntegerInput()
widget.setRange(1 if key == "stop_after_loss" else 0, maximum)
widget.setRange(1 if key in ("stop_after_loss", "loss_retry_hours") else 0, maximum)
widget.setValue(getattr(defaults, key))
setattr(self, "progression_" + key, widget)
form.addRow(label, widget)