diff options
| author | Jan T <keppinakki@gmail.com> | 2015-07-28 15:28:14 +0300 |
|---|---|---|
| committer | Jan T <keppinakki@gmail.com> | 2015-07-28 15:28:14 +0300 |
| commit | 95e92b7a0de886fd800a02b12ba6cf3815034cf5 (patch) | |
| tree | a6772595258601f300a06ce013fc506f5a6c0e0f /weatbag/action.py | |
| parent | 912f8334ba33b59acdfcc1a35f306ca14387611d (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.py | 3 |
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() |
