diff --git a/src/overwinter/facts.py b/src/overwinter/facts.py index e89d882..ab75898 100644 --- a/src/overwinter/facts.py +++ b/src/overwinter/facts.py @@ -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: { diff --git a/src/overwinter/scenes/office.py b/src/overwinter/scenes/office.py index 7bcc6a1..9821983 100644 --- a/src/overwinter/scenes/office.py +++ b/src/overwinter/scenes/office.py @@ -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.", ), diff --git a/src/overwinter/state.py b/src/overwinter/state.py index 4c9d8bc..5c0c023 100644 --- a/src/overwinter/state.py +++ b/src/overwinter/state.py @@ -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 diff --git a/tests/test_strip.py b/tests/test_strip.py index 9b4dc73..75aa9cf 100644 --- a/tests/test_strip.py +++ b/tests/test_strip.py @@ -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, @@ -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