Every action needs an actor, even ExitAction

This commit is contained in:
Eryn Wells 2022-05-08 23:45:20 -07:00
parent 17bad9fd4d
commit bc46856117

View file

@ -79,7 +79,7 @@ class EventHandler(tcod.event.EventDispatch[Action]):
return result
def ev_quit(self, event: tcod.event.Quit) -> Optional[Action]:
return ExitAction()
return ExitAction(self.engine.hero)
def ev_keydown(self, event: tcod.event.KeyDown) -> Optional[Action]:
action: Optional[Action] = None