Skip to content

Commit

Permalink
Patching air date math
Browse files Browse the repository at this point in the history
  • Loading branch information
Esummins committed Jun 1, 2024
1 parent bedb46f commit 6c283bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def get_tv_airing_date(key: int) -> str:
season_idx = (key - 1) // 4
season = seasons[season_idx % 4]

year = (key * 7) // 112 + 1
# Dropping key from 1 indexed to 0 indexed
year = (key - 1) // 16 + 1

return f"{season} {day}, Year {year}"

Expand Down
4 changes: 2 additions & 2 deletions src/data/cooking.json
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@
],
"itemID": "612",
"minVersion": "1.5.0",
"unlockConditions": "Winter 28, Year 2"
"unlockConditions": "Winter 28, Year 1"
},
"618": {
"ingredients": [
Expand Down Expand Up @@ -1259,7 +1259,7 @@
],
"itemID": "733",
"minVersion": "1.5.0",
"unlockConditions": "Winter 28, Year 3"
"unlockConditions": "Winter 28, Year 2"
},
"903": {
"ingredients": [
Expand Down

0 comments on commit 6c283bb

Please sign in to comment.