You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defcreate_event(self, event: str) ->MyGameItem:
# while we are at it, we can also add a helper to create eventsreturnMyGameItem(event, True, None, self.player)
MyGameItem is an instance of the item class and inherits the init from it. To my understanding, the second parameter is meant to be an ItemClassification, not a bool. Folks in the discord believe that this may actually result in an event getting passed up on in generation due to not being progression. Blame says this line in particular is four years old.
What were the expected results?
Maybe something like this?
defcreate_event(self, event: str) ->MyGameItem:
# while we are at it, we can also add a helper to create eventsreturnMyGameItem(event, ItemClassification.progression, None, self.player)
Lots of ways to handle it though.
Software
Website
The text was updated successfully, but these errors were encountered:
What happened?
In world api, lines 573-575:
MyGameItem is an instance of the item class and inherits the init from it. To my understanding, the second parameter is meant to be an ItemClassification, not a bool. Folks in the discord believe that this may actually result in an event getting passed up on in generation due to not being progression. Blame says this line in particular is four years old.
What were the expected results?
Maybe something like this?
Lots of ways to handle it though.
Software
Website
The text was updated successfully, but these errors were encountered: