Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[bin/crypt] allowed examining from the CLI

Also added descriptions for things now in the clearing.
  • Loading branch information...
commit 37e0d351574801f1c95a54aab50602aca02f6238 1 parent 1385e42
@masak authored
Showing with 13 additions and 1 deletion.
  1. +2 −1  bin/crypt
  2. +11 −0 game-data/descriptions
View
3  bin/crypt
@@ -821,7 +821,7 @@ class Adventure::Engine {
}
class Crypt::Game {
- has $!engine handles <walk save open>;
+ has $!engine handles <walk save open examine>;
submethod BUILD() {
$!engine = Adventure::Engine.new();
@@ -961,6 +961,7 @@ multi MAIN() {
say "You can go {join ' and ', .exits}.";
}
}
+ when Adventure::PlayerExamined { say %descriptions{.thing} }
}
CATCH {
when X::Adventure { say .message, '.' }
View
11 game-data/descriptions
@@ -25,3 +25,14 @@ circumference of the wall. It's hot and stuffy.
The air is stale and smells a bit metallic. Three impenetrable sarcophagi
sit next to each other on the floor. On the walls are numerous finely
inscribed ideograms.
+
+== flashlight
+The flashlight, a trusty Flexmann 520, has been serving you for countless
+adventures.
+
+== rope
+The rope is 5 meters and 31 centimeters long. It's twined together from
+sturdy fiber of some kind.
+
+== car
+Small, kind of old, and beginning to rust. But it still gets you places.
Please sign in to comment.
Something went wrong with that request. Please try again.