Archived
1
0
Fork 0
This commit is contained in:
多羅狼 2023-12-10 21:33:06 +08:00 committed by GitHub
parent cd5f55b8af
commit 236788b01e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,15 +97,14 @@ async def _(msg: Bot.MessageSession, use_local=True):
@arc.command('calc <score> <rating> {{arcaea.help.calc}}')
async def _(msg: Bot.MessageSession, score: int, rating: float):
ptt = 0
if score >= 10000000:
ptt += 2
ptt == 2
elif score >= 9800000:
ptt += 1 + (score - 9800000) / 200000
ptt == 1 + (score - 9800000) / 200000
else:
ptt += (score - 9500000) / 300000
if ptt <= 0:
ptt == 0
ptt == (score - 9500000) / 300000
if ptt < 0:
ptt = 0
await msg.finish([Plain(rating + ptt)])