mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Core: replace Location.event
with advancement
property (#2871)
This commit is contained in:
@@ -380,11 +380,6 @@ from BaseClasses import Location
|
||||
|
||||
class MyGameLocation(Location):
|
||||
game: str = "My Game"
|
||||
|
||||
# override constructor to automatically mark event locations as such
|
||||
def __init__(self, player: int, name="", code=None, parent=None) -> None:
|
||||
super(MyGameLocation, self).__init__(player, name, code, parent)
|
||||
self.event = code is None
|
||||
```
|
||||
|
||||
in your `__init__.py` or your `locations.py`.
|
||||
|
Reference in New Issue
Block a user