From d5793c85b2e21d408630b8de1c678938fecb9025 Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Mon, 21 Jun 2021 02:22:41 +0800 Subject: [PATCH] fix(nurturing): drag too fast when choose race --- auto_derby/jobs/nurturing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auto_derby/jobs/nurturing.py b/auto_derby/jobs/nurturing.py index 61aa1485..4ca48d84 100644 --- a/auto_derby/jobs/nurturing.py +++ b/auto_derby/jobs/nurturing.py @@ -48,6 +48,7 @@ def _choose_race(ctx: Context, race1: race.Race) -> None: action.drag( rp.vector2((100, 600), 466), dy=rp.vector(-50, 466), + duration=0.2, ) @@ -87,7 +88,7 @@ def _handle_training(ctx: Context) -> None: for t, s in trainings_with_score: LOGGER.info("score:\ttraining:\t%2.2f:\t%s", s, t) training, score = trainings_with_score[0] - + if races_with_score: r, s = races_with_score[0] if s > expected_score and s > score: