diff --git a/erynrl/actions/game.py b/erynrl/actions/game.py index e014c1f..ad960fa 100644 --- a/erynrl/actions/game.py +++ b/erynrl/actions/game.py @@ -36,13 +36,6 @@ class ExitAction(Action): raise SystemExit() -class RegenerateRoomsAction(Action): - '''Regenerate the dungeon map''' - - def perform(self, engine: 'Engine') -> ActionResult: - return self.failure() - - class MoveAction(ActionWithActor): '''An abstract Action that requires a direction to complete.''' diff --git a/erynrl/events.py b/erynrl/events.py index 9507a11..cc6928b 100644 --- a/erynrl/events.py +++ b/erynrl/events.py @@ -6,7 +6,7 @@ import tcod import tcod.event as tev from .actions.action import Action -from .actions.game import BumpAction, ExitAction, RegenerateRoomsAction, WaitAction +from .actions.game import BumpAction, ExitAction, WaitAction from .geometry import Direction if TYPE_CHECKING: @@ -45,8 +45,6 @@ class EngineEventHandler(tev.EventDispatch[Action]): action = BumpAction(hero, Direction.NorthEast) case tcod.event.KeySym.y: action = BumpAction(hero, Direction.NorthWest) - case tcod.event.KeySym.SPACE: - action = RegenerateRoomsAction() case tcod.event.KeySym.PERIOD: if not is_shift_pressed: action = WaitAction(hero)