Skip to content
Browse files

[bin/crypt] intercept all 'save'/'restore' commands

Not just the ones that only consist of that word.
  • Loading branch information...
1 parent 471b630 commit 9397b250ffc6a1e48707acb0073b21e62cdfe2de @masak committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/crypt
View
4 bin/crypt
@@ -88,12 +88,12 @@ open bag | close bag
inventory";
}
- when 'save' {
+ when /^ save>> / {
$save = $game.save;
say "Game saved.";
}
- when 'restore' {
+ when /^ restore>> / {
when !defined $save {
say "No game has been saved yet.";
}

0 comments on commit 9397b25

Please sign in to comment.
Something went wrong with that request. Please try again.