Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[bin/crypt] allowed examining from the CLI

Also added descriptions for things now in the clearing.
  • Loading branch information...
commit 37e0d351574801f1c95a54aab50602aca02f6238 1 parent 1385e42
Carl Mäsak authored July 17, 2012
3  bin/crypt
@@ -821,7 +821,7 @@ class Adventure::Engine {
821 821
 }
822 822
 
823 823
 class Crypt::Game {
824  
-    has $!engine handles <walk save open>;
  824
+    has $!engine handles <walk save open examine>;
825 825
 
826 826
     submethod BUILD() {
827 827
         $!engine = Adventure::Engine.new();
@@ -961,6 +961,7 @@ multi MAIN() {
961 961
                             say "You can go {join ' and ', .exits}.";
962 962
                         }
963 963
                     }
  964
+                    when Adventure::PlayerExamined { say %descriptions{.thing} }
964 965
                 }
965 966
                 CATCH {
966 967
                     when X::Adventure { say .message, '.' }
11  game-data/descriptions
@@ -25,3 +25,14 @@ circumference of the wall. It's hot and stuffy.
25 25
 The air is stale and smells a bit metallic. Three impenetrable sarcophagi
26 26
 sit next to each other on the floor. On the walls are numerous finely
27 27
 inscribed ideograms.
  28
+
  29
+== flashlight
  30
+The flashlight, a trusty Flexmann 520, has been serving you for countless
  31
+adventures.
  32
+
  33
+== rope
  34
+The rope is 5 meters and 31 centimeters long. It's twined together from
  35
+sturdy fiber of some kind.
  36
+
  37
+== car
  38
+Small, kind of old, and beginning to rust. But it still gets you places.

0 notes on commit 37e0d35

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