summaryrefslogtreecommitdiffstats
path: root/weatbag/action.py
diff options
context:
space:
mode:
authorJan T <keppinakki@gmail.com>2015-07-28 15:28:14 +0300
committerJan T <keppinakki@gmail.com>2015-07-28 15:28:14 +0300
commit95e92b7a0de886fd800a02b12ba6cf3815034cf5 (patch)
treea6772595258601f300a06ce013fc506f5a6c0e0f /weatbag/action.py
parent912f8334ba33b59acdfcc1a35f306ca14387611d (diff)
Changed 'look' command to work like 'look around' when no target ismaster
given.
Diffstat (limited to 'weatbag/action.py')
-rw-r--r--weatbag/action.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/weatbag/action.py b/weatbag/action.py
index 0f1a848..e7e7424 100644
--- a/weatbag/action.py
+++ b/weatbag/action.py
@@ -36,7 +36,8 @@ def handle_action(tile, player, do):
# Show help text
display_help()
- elif len(do) == 2 and (do[0] in words.look) and (do[1] in words.surroundings):
+ elif (len(do) == 1 and (do[0] in words.look)) or \
+ (len(do) == 2 and (do[0] in words.look) and (do[1] in words.surroundings)):
# Look around
tile.describe()