Archived
1
0
Fork 0
wssb
This commit is contained in:
多羅狼 2023-12-17 14:11:18 +08:00 committed by GitHub
parent 33e0cb528e
commit e4e776e21e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -462,9 +462,7 @@ async def _(msg: Bot.MessageSession, base: float, score: float):
if base > 15 or base < 0:
await msg.finish(msg.locale.t('maimai.message.base_invalid'))
if score:
await msg.finish(Plain[computeRa(base, score)])
# else:
# ...
await msg.finish([Plain(computeRa(base, score))])
def computeRa(base: float, achievement: float) -> int:
if achievement < 50: