From 4b5f0263e490751b87cf71cc9b29f3c8e7346493 Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Tue, 25 Jun 2024 21:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E6=AD=A3=20TETR.IO=20r?= =?UTF-8?q?ecords=20max=20=E6=95=B0=E6=8D=AE=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py | 4 ++-- nonebot_plugin_tetris_stats/games/tetrio/record/sprint.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py b/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py index 331e3c7..81ad785 100644 --- a/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py +++ b/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py @@ -85,8 +85,8 @@ async def make_blitz_image(player: Player) -> bytes: kpp=round(endcontext.inputs / endcontext.piecesplaced, 2), kps=round(endcontext.inputs / duration, 2), max=Max( - combo=max((0, endcontext.combo - 1)), - btb=max((0, endcontext.btb - 1)), + combo=max((0, endcontext.topcombo - 1)), + btb=max((0, endcontext.topbtb - 1)), ), pieces=endcontext.piecesplaced, pps=metrics.pps, diff --git a/nonebot_plugin_tetris_stats/games/tetrio/record/sprint.py b/nonebot_plugin_tetris_stats/games/tetrio/record/sprint.py index 5b021d6..33e4ec0 100644 --- a/nonebot_plugin_tetris_stats/games/tetrio/record/sprint.py +++ b/nonebot_plugin_tetris_stats/games/tetrio/record/sprint.py @@ -87,8 +87,8 @@ async def make_sprint_image(player: Player) -> bytes: kpp=round(endcontext.inputs / endcontext.piecesplaced, 2), kps=round(endcontext.inputs / duration, 2), max=Max( - combo=max((0, endcontext.combo - 1)), - btb=max((0, endcontext.btb - 1)), + combo=max((0, endcontext.topcombo - 1)), + btb=max((0, endcontext.topbtb - 1)), ), pieces=endcontext.piecesplaced, pps=metrics.pps,