Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
fix(single-mode): wrong date comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Aug 30, 2022
1 parent 658e3d5 commit 61933bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auto_derby/single_mode/commands/health_care.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def default_score(ctx: Context) -> float:
ret += 10
if ctx.date[1:] in ((6, 2),):
ret += 20
if ctx.date in ((4, 0, 0)):
if ctx.date in ((4, 0, 0),):
ret -= 20
return ret

Expand Down
2 changes: 1 addition & 1 deletion auto_derby/single_mode/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def expected_score(self) -> float:
expected_score += 20
if self.is_summer_camp and self.vitality < 0.8:
expected_score += 10
if self.date in ((4, 0, 0)):
if self.date in ((4, 0, 0),):
expected_score -= 20
if can_heal_condition:
expected_score += (
Expand Down

0 comments on commit 61933bf

Please sign in to comment.