Skip to content

Commit

Permalink
#205 调整默认难度日志显示
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorReid committed Mar 1, 2024
1 parent 15d8a54 commit 0998b52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sr/sim_uni/op/choose_sim_uni_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def __init__(self, ctx: Context, num: int):
:param num: 难度 支持 1~5
"""
super().__init__(ctx, try_times=5,
op_name='%s %s %d' % (gt('模拟宇宙', 'ui'), gt('选择难度', 'ui'), num))
op_name='%s %s %s' % (gt('模拟宇宙', 'ui'), gt('选择难度', 'ui'),
gt('默认', 'ui') if num == 0 else str(num))
)

self.num: int = num

Expand Down

0 comments on commit 0998b52

Please sign in to comment.