diff --git a/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py b/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py index f6a97c1..93e61da 100644 --- a/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py +++ b/nonebot_plugin_tetris_stats/games/tetrio/record/blitz.py @@ -84,7 +84,10 @@ async def make_blitz_image(player: Player) -> bytes: keys=endcontext.inputs, kpp=round(endcontext.inputs / endcontext.piecesplaced, 2), kps=round(endcontext.inputs / duration, 2), - max=Max(combo=endcontext.combo, btb=endcontext.btb), + max=Max( + combo=max((0, endcontext.combo - 1)), + btb=max((0, endcontext.btb - 1)), + ), pieces=endcontext.piecesplaced, pps=metrics.pps, lines=endcontext.lines, diff --git a/nonebot_plugin_tetris_stats/games/tetrio/record/sprint.py b/nonebot_plugin_tetris_stats/games/tetrio/record/sprint.py index 17d465c..4cf6631 100644 --- a/nonebot_plugin_tetris_stats/games/tetrio/record/sprint.py +++ b/nonebot_plugin_tetris_stats/games/tetrio/record/sprint.py @@ -86,7 +86,10 @@ async def make_sprint_image(player: Player) -> bytes: keys=endcontext.inputs, kpp=round(endcontext.inputs / endcontext.piecesplaced, 2), kps=round(endcontext.inputs / duration, 2), - max=Max(combo=endcontext.combo, btb=endcontext.btb), + max=Max( + combo=max((0, endcontext.combo - 1)), + btb=max((0, endcontext.btb - 1)), + ), pieces=endcontext.piecesplaced, pps=metrics.pps, lines=endcontext.lines,