From 95e92b7a0de886fd800a02b12ba6cf3815034cf5 Mon Sep 17 00:00:00 2001 From: Jan T Date: Tue, 28 Jul 2015 15:28:14 +0300 Subject: Changed 'look' command to work like 'look around' when no target is given. --- weatbag/action.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'weatbag/action.py') 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() -- cgit v1.3