mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
update exclusion procedure for clarity
This commit is contained in:
@@ -1104,7 +1104,7 @@ class Item():
|
||||
world: Optional[MultiWorld] = None
|
||||
game: str = "Generic"
|
||||
type: str = None
|
||||
can_be_excluded: bool = True # change manually if you want some non-advancement item to not be excluded
|
||||
never_exclude = False # change manually to ensure that a specific nonprogression item never goes on an excluded location
|
||||
pedestal_credit_text: str = "and the Unknown Item"
|
||||
sickkid_credit_text: Optional[str] = None
|
||||
magicshop_credit_text: Optional[str] = None
|
||||
@@ -1118,8 +1118,6 @@ class Item():
|
||||
self.player = player
|
||||
self.code = code
|
||||
|
||||
self.can_be_excluded = not advancement
|
||||
|
||||
@property
|
||||
def hint_text(self):
|
||||
return getattr(self, "_hint_text", self.name.replace("_", " ").replace("-", " "))
|
||||
@@ -1139,10 +1137,6 @@ class Item():
|
||||
def __hash__(self):
|
||||
return hash((self.name, self.player))
|
||||
|
||||
@property
|
||||
def can_exclude(self) -> bool:
|
||||
return not (self.advancement or self.smallkey or self.bigkey) and self.can_be_excluded
|
||||
|
||||
@property
|
||||
def crystal(self) -> bool:
|
||||
return self.type == 'Crystal'
|
||||
|
Reference in New Issue
Block a user