Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[bin/crypt] simplified conditionals
thou++
  • Loading branch information
Carl Masak committed Jul 20, 2012
1 parent 116c421 commit 3c8d86f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/crypt
Expand Up @@ -496,10 +496,11 @@ class Adventure::Engine {
return unless $location;
for %!thing_rooms.keys -> $thing {
next unless %!thing_rooms{$thing} eq $location;
return True if $thing eq $sought;
if %!open_things{$thing} && self!contents_of($thing) {
return True if self!is_thing_in($sought, "contents:$thing");
}
return True
if $thing eq $sought;
return True
if %!open_things{$thing}
&& self!is_thing_in($sought, "contents:$thing");
}
return False;
}
Expand Down

0 comments on commit 3c8d86f

Please sign in to comment.