From 5dcafac861629a04ef8461840478a7d16e5274f8 Mon Sep 17 00:00:00 2001 From: Aaron Wagener Date: Thu, 11 Apr 2024 17:49:22 -0500 Subject: [PATCH] Core: add Location.is_event property (#2968) --- BaseClasses.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BaseClasses.py b/BaseClasses.py index 24dc074b..a928f034 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -1075,6 +1075,11 @@ class Location: 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."""