Core: add Location.is_event property (#2968)
This commit is contained in:
parent
8d28c34f95
commit
5dcafac861
|
@ -1075,6 +1075,11 @@ class Location:
|
||||||
def __lt__(self, other: Location):
|
def __lt__(self, other: Location):
|
||||||
return (self.player, self.name) < (other.player, other.name)
|
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
|
@property
|
||||||
def native_item(self) -> bool:
|
def native_item(self) -> bool:
|
||||||
"""Returns True if the item in this location matches game."""
|
"""Returns True if the item in this location matches game."""
|
||||||
|
|
Loading…
Reference in New Issue