Skip to content

Commit

Permalink
update enable_fq_mod description with location counts, and add/update…
Browse files Browse the repository at this point in the history
… mod tests to assert those location counts are correct
  • Loading branch information
Ixrec committed Oct 15, 2024
1 parent 7871062 commit 7d029ea
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 9 deletions.
4 changes: 2 additions & 2 deletions worlds/outer_wilds/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ class EnableHearthsNeighbor2MagistariumMod(Toggle):

class EnableFretsQuestMod(Toggle):
"""
Incorporates Fret's Quest story mod content into the randomizer with an additional (TODO) items and (TODO) locations.
If logsanity is enabled, that will add another (TODO) locations, for a total of (TODO) FQ locations.
Incorporates Fret's Quest story mod content into the randomizer with an additional 1 item and 18 locations.
If logsanity is enabled, that will add another 38 locations, for a total of 56 FQ locations.
"""
display_name = "Enable Fret's Quest Story Mod"

Expand Down
41 changes: 34 additions & 7 deletions worlds/outer_wilds/test/test_mods.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,44 @@ def test_hn2_logsanity(self):
self.assertEqual(self.getLocationCount(), 313)


class TestFQ(OuterWildsTestBase):
options = {
"enable_fq_mod": 1
}

def test_fq(self):
self.assertEqual(self.getLocationCount(), 107) # 87(+2V) base game + 18 FQ locations


class TestFQLogsanity(OuterWildsTestBase):
options = {
"enable_fq_mod": 1,
"logsanity": 1
}

def test_fq_logsanity(self):
# 87(+2V) base game default locations + 176 base game logsanity locations +
# 18 FQ default locations + 38 FQ logsanity locations
self.assertEqual(self.getLocationCount(), 321)


class TestAllMods(OuterWildsTestBase):
options = {
"enable_hn1_mod": 1,
"enable_outsider_mod": 1,
"enable_ac_mod": 1,
"enable_hn2_mod": 1
"enable_hn2_mod": 1,
"enable_fq_mod": 1,
}

def test_all_mods(self):
# 87(+2V) base game default locations +
# 20 HN1 default locations +
# 21 TO default locations +
# 21 AC locations +
# 18 HN2 locations
self.assertEqual(self.getLocationCount(), 169)
# 18 HN2 locations +
# 18 FQ default locations
self.assertEqual(self.getLocationCount(), 187)


class TestAllModsLogsanity(OuterWildsTestBase):
Expand All @@ -108,6 +131,7 @@ class TestAllModsLogsanity(OuterWildsTestBase):
"enable_outsider_mod": 1,
"enable_ac_mod": 1,
"enable_hn2_mod": 1,
"enable_fq_mod": 1,
"logsanity": 1
}

Expand All @@ -116,8 +140,9 @@ def test_all_mods_logsanity(self):
# 20 HN1 default locations + 41 HN1 logsanity locations +
# 21 TO default locations + 44 TO logsanity locations +
# 21 AC default locations + 39 AC logsanity locations +
# 18 HN2 default locations + 30 HN2 logsanity locations
self.assertEqual(self.getLocationCount(), 499)
# 18 HN2 default locations + 30 HN2 logsanity locations +
# 18 FQ default locations + 38 FQ logsanity locations
self.assertEqual(self.getLocationCount(), 555)


# this is just to get an assertion on the maximum possible location count
Expand All @@ -128,6 +153,7 @@ class TestAllModsAndDLCLogsanity(OuterWildsTestBase):
"enable_outsider_mod": 1,
"enable_ac_mod": 1,
"enable_hn2_mod": 1,
"enable_fq_mod": 1,
"logsanity": 1
}

Expand All @@ -137,5 +163,6 @@ def test_all_mods_and_dlc_logsanity(self):
# 20 HN1 default locations + 41 HN1 logsanity locations +
# 21 TO default locations + 44 TO logsanity locations +
# 21 AC default locations + 39 AC logsanity locations +
# 18 HN2 default locations + 30 HN2 logsanity locations
self.assertEqual(self.getLocationCount(), 609)
# 18 HN2 default locations + 30 HN2 logsanity locations +
# 18 FQ default locations + 38 FQ logsanity locations
self.assertEqual(self.getLocationCount(), 665)

0 comments on commit 7d029ea

Please sign in to comment.