Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[bin/crypt] descriptions at start and when entering rooms

Also fill in all the room descriptions from last year.
  • Loading branch information...
commit 1c7f6e2f38bba5261ecba4d3e6f9be50b1106088 1 parent 8896863
@masak authored
Showing with 34 additions and 3 deletions.
  1. +10 −3 bin/crypt
  2. +24 −0 game-data/descriptions
View
13 bin/crypt
@@ -429,8 +429,12 @@ multi MAIN() {
up down in out
>;
- say "Clearing";
- say "";
+ given 'clearing' {
+ say .ucfirst;
+ say "";
+ say %descriptions{$_};
+ say "";
+ }
loop {
my $command = prompt('> ');
@@ -465,7 +469,10 @@ multi MAIN() {
}
my @events = $game."$verb"(|@args);
for @events {
- when Adventure::PlayerWalked { say ucfirst .to }
+ when Adventure::PlayerWalked { say ucfirst .to; say "" }
+ when Adventure::PlayerLooked {
+ say %descriptions{.description_of};
+ }
}
CATCH {
when X::Adventure { say .message, '.' }
View
24 game-data/descriptions
@@ -1,3 +1,27 @@
== clearing
The forest road stops here, and the gaps between the trees widen into a
patch of un-forest. The sky above is clear apart from a few harmless clouds.
+
+== hill
+A flat, broad hill interrupts the dense-ish forest here. Only grass and
+small bushes grow on the hill.
+
+== chamber
+This is a cramped space just inside the hidden opening in the hill. The
+sun gets in enough to illuminate the place. There are some scribblings on
+the wall.
+
+== hall
+It's hard to believe that this kind of room can fit under a hill. It's tall,
+long, and quite spacious. Hieroglyphs adorn all four of the walls. The
+floor slants a bit.
+
+== cave
+This is a perfectly cylindrical chamber. An oversized fire-pit takes up most
+of the floor space in the middle of the room. Ancient runes run along the
+circumference of the wall. It's hot and stuffy.
+
+== crypt
+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.
Please sign in to comment.
Something went wrong with that request. Please try again.