Skip to content

Commit

Permalink
screw it, campaign size option
Browse files Browse the repository at this point in the history
  • Loading branch information
EnvyDragon committed Nov 21, 2024
1 parent 3ab8fa9 commit a58631e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion worlds/sc2/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class MaximumCampaignSize(Range):
"""
display_name = "Maximum Campaign Size"
range_start = 1
range_end = 147
range_end = len(SC2Mission)
default = 83


Expand Down
4 changes: 1 addition & 3 deletions worlds/sc2/test/test_options.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import unittest
from typing import Set, Dict, List

from .. import mission_tables, options
from .. import options
from ..item import item_tables


class TestOptions(unittest.TestCase):
def test_campaign_size_option_max_matches_number_of_missions(self) -> None:
self.assertEqual(options.MaximumCampaignSize.range_end, len(mission_tables.SC2Mission))

def test_unit_max_upgrades_matching_items(self) -> None:
base_items: Set[str] = {
Expand Down

0 comments on commit a58631e

Please sign in to comment.