Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2023-12-21 21:50:25 +08:00 committed by GitHub
parent f2e110d7d4
commit 124da4bfe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,7 @@ async def chemical_code(msg: Bot.MessageSession, id=None, random_mode=True, capt
else:
send_ = wait.locale.t('chemical_code.message.correct')
if random_mode:
if (g_msg := await gained_petal(wait, 2)):
if (g_msg := await gained_petal(wait, 1)):
send_ += '\n' + g_msg
await wait.send_message(send_)
play_state[msg.target.target_id]['active'] = False
@ -249,7 +249,7 @@ async def chemical_code(msg: Bot.MessageSession, id=None, random_mode=True, capt
if play_state[msg.target.target_id]['active']:
if result.as_display(text_only=True) == csr['name']:
send_ = msg.locale.t('chemical_code.message.correct')
if (g_msg := await gained_petal(msg, 1)):
if (g_msg := await gained_petal(msg, 2)):
send_ += '\n' + g_msg
await result.send_message(send_)
else: