Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
yzhh 2023-11-15 14:58:13 +08:00
parent 81e2c8810a
commit fda10e80bd

View file

@ -55,12 +55,12 @@ async def finish_fish(msg: Bot.MessageSession):
(f'{msg.locale.t("fish.message.size")}' (f'{msg.locale.t("fish.message.size")}'
f'{msg.locale.t("fish.message.size." + play_state[msg.target.target_id]["fish_type"])}') f'{msg.locale.t("fish.message.size." + play_state[msg.target.target_id]["fish_type"])}')
if play_state[msg.target.target_id]['hooked_time'] < 2: if play_state[msg.target.target_id]['hooked_time'] < 2:
if g := (g_msg := await gained_petal(msg, 1)): if g := await gained_petal(msg, 1):
text += '\n' + g text += '\n' + g
await msg.finish(text, quote=False) await msg.finish(text, quote=False)
else: else:
send = msg.locale.t('fish.message.failed.' + str(random.randint(1, 3))) send = msg.locale.t('fish.message.failed.' + str(random.randint(1, 3)))
if g := (g_msg := await lost_petal(msg, 1)): if g := await lost_petal(msg, 1):
send += '\n' + g send += '\n' + g
await msg.finish(send, quote=False) await msg.finish(send, quote=False)
else: else: