mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Allow locations to be prioritized for progress item placement (#189)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import typing
|
||||
|
||||
from BaseClasses import LocationProgressType
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
import BaseClasses
|
||||
|
||||
@@ -31,6 +33,7 @@ def exclusion_rules(world, player: int, exclude_locations: typing.Set[str]):
|
||||
else:
|
||||
add_item_rule(location, lambda i: not (i.advancement or i.never_exclude))
|
||||
location.excluded = True
|
||||
location.progress_type = LocationProgressType.EXCLUDED
|
||||
|
||||
def set_rule(spot, rule: CollectionRule):
|
||||
spot.access_rule = rule
|
||||
|
||||
Reference in New Issue
Block a user