Skip to content

Commit

Permalink
sc2: Making victory checks option range from 0 to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMarinets committed Dec 19, 2024
1 parent e45a361 commit 1da26df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions worlds/sc2/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
SC2LOTV_LOC_ID_OFFSET = SC2HOTS_LOC_ID_OFFSET + 2000
SC2NCO_LOC_ID_OFFSET = SC2LOTV_LOC_ID_OFFSET + 2500
SC2_RACESWAP_LOC_ID_OFFSET = SC2NCO_LOC_ID_OFFSET + 900
VICTORY_CACHE_OFFSET = 91
VICTORY_CACHE_OFFSET = 90


class SC2Location(Location):
Expand Down Expand Up @@ -5750,7 +5750,7 @@ def get_locations(world: Optional['SC2World']) -> Tuple[LocationData, ...]:
]
beat_events: List[LocationData] = []
victory_caches: List[LocationData] = []
VICTORY_CACHE_SIZE = 9
VICTORY_CACHE_SIZE = 10
for location_data in location_table:
# Generating Beat event and Victory Cache locations
if location_data.type == LocationType.VICTORY:
Expand Down
4 changes: 2 additions & 2 deletions worlds/sc2/mission_order/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
IntZero = And(int, lambda val: val >= 0)
IntOne = And(int, lambda val: val >= 1)
IntPercent = And(int, lambda val: 0 <= val <= 100)
IntZeroToNine = And(int, lambda val: 0 <= val <= 9)
IntZeroToTen = And(int, lambda val: 0 <= val <= 10)

SubRuleEntryRule = {
"rules": [{str: object}], # recursive schema checking is too hard
Expand Down Expand Up @@ -155,7 +155,7 @@ class CustomMissionOrder(OptionDict):
Optional("entry_rules"): [EntryRule],
Optional("mission_pool"): {int},
Optional("difficulty"): Difficulty,
Optional("victory_checks"): IntZeroToNine,
Optional("victory_checks"): IntZeroToTen,
}],
},
}
Expand Down
2 changes: 1 addition & 1 deletion worlds/sc2/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ class VictoryChecks(Range):
"""
display_name = "Victory Checks"
range_start = 0
range_end = 9
range_end = 10
default = 0


Expand Down

0 comments on commit 1da26df

Please sign in to comment.