Remove the RegenerateRoomsAction

This commit is contained in:
Eryn Wells 2023-03-11 00:57:48 -08:00
parent f78bc39e3b
commit 01b549bc6e
2 changed files with 1 additions and 10 deletions

View file

@ -36,13 +36,6 @@ class ExitAction(Action):
raise SystemExit() raise SystemExit()
class RegenerateRoomsAction(Action):
'''Regenerate the dungeon map'''
def perform(self, engine: 'Engine') -> ActionResult:
return self.failure()
class MoveAction(ActionWithActor): class MoveAction(ActionWithActor):
'''An abstract Action that requires a direction to complete.''' '''An abstract Action that requires a direction to complete.'''

View file

@ -6,7 +6,7 @@ import tcod
import tcod.event as tev import tcod.event as tev
from .actions.action import Action from .actions.action import Action
from .actions.game import BumpAction, ExitAction, RegenerateRoomsAction, WaitAction from .actions.game import BumpAction, ExitAction, WaitAction
from .geometry import Direction from .geometry import Direction
if TYPE_CHECKING: if TYPE_CHECKING:
@ -45,8 +45,6 @@ class EngineEventHandler(tev.EventDispatch[Action]):
action = BumpAction(hero, Direction.NorthEast) action = BumpAction(hero, Direction.NorthEast)
case tcod.event.KeySym.y: case tcod.event.KeySym.y:
action = BumpAction(hero, Direction.NorthWest) action = BumpAction(hero, Direction.NorthWest)
case tcod.event.KeySym.SPACE:
action = RegenerateRoomsAction()
case tcod.event.KeySym.PERIOD: case tcod.event.KeySym.PERIOD:
if not is_shift_pressed: if not is_shift_pressed:
action = WaitAction(hero) action = WaitAction(hero)