diff --git a/BaseClasses.py b/BaseClasses.py index 24dc074b63d4..a928f034b7f1 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -1075,6 +1075,11 @@ def __hash__(self): def __lt__(self, other: Location): return (self.player, self.name) < (other.player, other.name) + @property + def is_event(self) -> bool: + """Returns True if the address of this location is None, denoting it is an Event Location.""" + return self.address is None + @property def native_item(self) -> bool: """Returns True if the item in this location matches game."""