Add a WaitAction and trigger it with .
This commit is contained in:
parent
85423e739c
commit
4f7e477b24
2 changed files with 14 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue