diff options
| -rw-r--r-- | weatbag/tiles/n3.py | 4 | ||||
| -rw-r--r-- | weatbag/words.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/weatbag/tiles/n3.py b/weatbag/tiles/n3.py index 93933d8..a290372 100644 --- a/weatbag/tiles/n3.py +++ b/weatbag/tiles/n3.py @@ -9,7 +9,7 @@ class Tile: def describe(self): if not self.enemy_dead: print("You encounter an orc! He's got a mean look, but you're a " - "strong lad. You should be able to take him. Swing or flee?") + "strong one. You should be able to take him. Attack or flee?") else: print("You see an orc corpse here.") @@ -58,7 +58,7 @@ class Tile: self.leave(player, 's') return - if do[0] == "swing": + if do[0] in words.attack: self.player_swing(player) self.enemy_swing(player) diff --git a/weatbag/words.py b/weatbag/words.py index 11ede7d..25f762e 100644 --- a/weatbag/words.py +++ b/weatbag/words.py @@ -14,6 +14,7 @@ fight = {'fight', 'kill', 'hit', 'attack'} drop = {'drop'} take = {'pick', 'take', 'get', 'collect'} look = {'look', 'inspect', 'examine'} +attack = {'attack', 'swing', 'hit', 'punch', 'fight'} inventory = {'inventory', 'possessions', 'belongings', 'bag'} surroundings = {'surroundings', 'around', 'scenery'} |
