Skip to content

Commit

Permalink
fix(nurturing): drag too fast when choose race
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Jun 20, 2021
1 parent b57ce7e commit d5793c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auto_derby/jobs/nurturing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d5793c8

Please sign in to comment.