Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/overwinter/facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"title": "The 1958 depot",
"text": "From the log, 1958: an emergency depot laid in a stone cairn "
"on the headland - pemmican and hard bread in sealed tins, 'for "
"twelve days at one man'. Nobody has opened it since. It is an "
"twenty-four days at one man'. Nobody has opened it since. It is an "
"afternoon's walk. Some of it will have gone.",
},
THE_SEALS: {
Expand Down
2 changes: 1 addition & 1 deletion src/overwinter/scenes/office.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
facts.THE_DEPOT,
"1958, October. 'Emergency depot laid this day in a stone cairn on "
"the headland, one mile north of the strip: pemmican and hard bread "
"in sealed tins, for twelve days at one man. To be inspected each "
"in sealed tins, for twenty-four days at one man. To be inspected each "
"season.' Below it, in eight different hands over fifty years: "
"'Inspected. Cairn sound.' Nobody has written that they opened it.",
),
Expand Down
2 changes: 1 addition & 1 deletion src/overwinter/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
MANIFEST_FOOD = 21 * STATION_MOUTHS
# Four crates of six rations went across the bay with Aksel.
AKSEL_CRATES = 24
# The 1958 depot: twelve days at one man, of which half has gone.
# The 1958 depot: twenty-four days at one man, of which half has gone.
DEPOT_FOOD = 12
# One seal feeds the station for two days.
SEAL_FOOD = 8
Expand Down
15 changes: 15 additions & 0 deletions tests/test_strip.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

from overwinter import facts, flags, progression
from overwinter.scenes.base import STORM_REASON
from overwinter.scenes.office import LOG_ENTRIES
from overwinter.scenes.strip import HUNT_DRAWS, Strip
from overwinter.state import (
AKSEL_FLOWN,
AKSEL_HUT,
AKSEL_STATION,
DEPOT_FOOD,
ICE_SAFE_DAY,
STORM_DAYS,
State,
Expand Down Expand Up @@ -95,6 +97,19 @@ def test_an_emptied_depot_is_greyed_with_the_reason():
assert reasons(game.ui)[DEPOT] == "you've emptied it"


def test_the_depot_as_laid_is_twice_what_comes_back_once_half_is_left():
# Two dozen tins, half swollen and left behind, DEPOT_FOOD rations home:
# the log and the fact must say it was laid for twice that at one man.
laid = {24: "twenty-four"}[2 * DEPOT_FOOD] + " days at one man"
assert laid in LOG_ENTRIES[0][2]
assert laid in facts.FACTS[facts.THE_DEPOT]["text"]

game, scene = everything([DEPOT, "Quit"])
scene.run()
assert game.ui.saw("two dozen tins. Half are swollen")
assert game.ui.saw("%d rations" % DEPOT_FOOD)


def test_the_holes_need_aksel_on_the_island_and_take_one_wait_a_day():
game, scene = everything(["Quit"])
game.state.akselAt = AKSEL_FLOWN
Expand Down
Loading