Skip to content

Commit

Permalink
[bin/crypt] rooms are announced as we enter them
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed Jul 6, 2012
1 parent 262cd87 commit e478ae2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/crypt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ multi MAIN() {
} }
my %commands = map { $^m.name => params($m) }, $game.^methods; my %commands = map { $^m.name => params($m) }, $game.^methods;


say "Clearing";
say "";

loop { loop {
my $command = prompt('> '); my $command = prompt('> ');
given $command { given $command {
Expand Down Expand Up @@ -428,6 +431,9 @@ multi MAIN() {
say "The arguments are {map { "<$_>" }, @req_args}."; say "The arguments are {map { "<$_>" }, @req_args}.";
} }
my @events = $game."$verb"(|@args); my @events = $game."$verb"(|@args);
for @events {
when Adventure::PlayerWalked { say ucfirst .to }
}
CATCH { CATCH {
when X::Adventure { say .message, '.' } when X::Adventure { say .message, '.' }
} }
Expand Down

0 comments on commit e478ae2

Please sign in to comment.