Fix exploration member selection and automatic reward collection

This commit is contained in:
AttilaNet
2026-11-09 15:10:16 +08:00
parent eaaad3488b
commit 5d2da97b90
5 changed files with 91 additions and 11 deletions
+4 -2
View File
@@ -621,8 +621,8 @@ class ExplorePlanner:
teams = [team for team in snapshot.raw.get("exploreTeams") or [] if isinstance(team, dict)]
for team in teams:
team_id = _integer(team.get("id"), -1)
if (team_id > 0 and self.team_rule(policy, team_id).enabled
and _integer(team.get("status")) == 1 and self.remaining(snapshot, team) == 0):
if (team_id > 0 and _integer(team.get("status")) == 1
and self.remaining(snapshot, team) == 0):
return [self._issue(scope, Action("explore_finish", f"领取探险队 {team_id} 的奖励",
"exploreService/finish", {"exploreTeamId": team_id}))]
stamina = _integer((snapshot.raw.get("master") or {}).get("ti"))
@@ -663,6 +663,8 @@ class ExplorePlanner:
state = "空闲"
if not self.open(snapshot):
state, reason = "未解锁", "完成指定主线后解锁探险"
elif status == 1 and not rule.enabled:
reason = "未启用再次出发;完成时仍会自动领取奖励"
elif not rule.enabled:
state, reason = "未启用", "勾选此队伍后参与自动探险"
elif status != 0: