Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[bin/crypt] added helmet to hall

  • Loading branch information...
commit e4f2c0ce868fedf2fd6c6db76cf89daed9f32a56 1 parent 1df2f52
Carl Mäsak authored July 24, 2012

Showing 1 changed file with 16 additions and 0 deletions. Show diff stats Hide diff stats

  1. 16  bin/crypt
16  bin/crypt
@@ -1042,6 +1042,10 @@ class Crypt::Game {
1042 1042
                     }
1043 1043
                 };
1044 1044
 
  1045
+            # Things in hall
  1046
+            .place_thing: 'helmet', 'hall';
  1047
+            .make_thing_carryable: 'helmet';
  1048
+
1045 1049
             .place_player: $!player_location = 'clearing';
1046 1050
         }
1047 1051
 
@@ -2286,6 +2290,7 @@ multi MAIN('test') {
2286 2290
             Adventure::PlayerLooked.new(
2287 2291
                 :room<hall>,
2288 2292
                 :exits<north>,
  2293
+                :things<helmet>,
2289 2294
             ),
2290 2295
             'looking with the flashlight switched on';
2291 2296
     }
@@ -2338,6 +2343,17 @@ multi MAIN('test') {
2338 2343
             'can walk down after solving the hanoi game (+)';
2339 2344
     }
2340 2345
 
  2346
+    {
  2347
+        my $game = game_from_hall();
  2348
+
  2349
+        $game.use('flashlight');
  2350
+        is $game.take('helmet'),
  2351
+            Adventure::PlayerTook.new(
  2352
+                :thing<helmet>,
  2353
+            ),
  2354
+            'taking the helmet (+)';
  2355
+    }
  2356
+
2341 2357
     done;
2342 2358
 }
2343 2359
 

0 notes on commit e4f2c0c

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