Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[bin/crypt] can fill the helmet with water

  • Loading branch information...
commit 45e6ac87166bf3c461b0344c48be07ec842ea1ed 1 parent 08d9904
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
@@ -1069,6 +1069,7 @@ class Crypt::Game {
1069 1069
             # Things in hall
1070 1070
             .place_thing: 'helmet', 'hall';
1071 1071
             .make_thing_carryable: 'helmet';
  1072
+            .make_thing_a_container: 'helmet';
1072 1073
 
1073 1074
             .place_player: $!player_location = 'clearing';
1074 1075
         }
@@ -2409,6 +2410,21 @@ multi MAIN('test') {
2409 2410
             };
2410 2411
     }
2411 2412
 
  2413
+    {
  2414
+        my $game = game_from_hall();
  2415
+
  2416
+        $game.use('flashlight');
  2417
+        $game.take('helmet');
  2418
+        $game.walk('north');
  2419
+        $game.walk('north');
  2420
+        is $game.put_thing_in('water', 'helmet'),
  2421
+            Adventure::PlayerPutIn.new(
  2422
+                :thing<water>,
  2423
+                :in<helmet>,
  2424
+            ),
  2425
+            'filling the helmet with water';
  2426
+    }
  2427
+
2412 2428
     done;
2413 2429
 }
2414 2430
 

0 notes on commit 45e6ac8

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