Skip to content

Commit

Permalink
#337 修复旧宇宙沉浸奖励次数
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorReid committed Jun 23, 2024
1 parent 93fbc65 commit 9ded931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sr/app/trailblaze_power/trailblaze_power_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def _execute_plan(self) -> OperationOneRoundResult:
run_times = plan['plan_times'] - plan['run_times']
else:
run_times = can_run_times
log.info(f'准备挑战 {mission.ui_cn} 次数 {run_times}')
if run_times == 0:
return self.round_success(TrailblazePower.STATUS_PLAN_FINISHED)

Expand All @@ -161,7 +162,7 @@ def _execute_plan(self) -> OperationOneRoundResult:
elif mission.sim_world is not None:
op = SimUniApp(self.ctx,
specified_uni_num=mission.sim_world.idx,
max_reward_to_get=can_run_times,
max_reward_to_get=run_times,
get_reward_callback=self._on_sim_uni_get_reward
)
op.init_context_before_start = False
Expand Down

0 comments on commit 9ded931

Please sign in to comment.