Add a WaitAction and trigger it with .

This commit is contained in:
Eryn Wells 2022-05-07 22:34:43 -07:00
parent 85423e739c
commit 4f7e477b24
2 changed files with 14 additions and 3 deletions

View file

@ -178,3 +178,10 @@ class MeleeAction(MoveAction):
def perform(self, engine: 'Engine') -> ActionResult:
LOG.info('Attack! %s', self.target)
return ActionResult(self, success=True)
class WaitAction(Action):
'''Wait a turn'''
def perform(self, engine: 'Engine') -> ActionResult:
LOG.info('%s is waiting a turn', self.entity)
return ActionResult(self, success=True)