Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[bin/crypt] can fill the helmet with water

  • Loading branch information...
commit 45e6ac87166bf3c461b0344c48be07ec842ea1ed 1 parent 08d9904
Carl Mäsak authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 bin/crypt
16 bin/crypt
View
@@ -1069,6 +1069,7 @@ class Crypt::Game {
# Things in hall
.place_thing: 'helmet', 'hall';
.make_thing_carryable: 'helmet';
+ .make_thing_a_container: 'helmet';
.place_player: $!player_location = 'clearing';
}
@@ -2409,6 +2410,21 @@ multi MAIN('test') {
};
}
+ {
+ my $game = game_from_hall();
+
+ $game.use('flashlight');
+ $game.take('helmet');
+ $game.walk('north');
+ $game.walk('north');
+ is $game.put_thing_in('water', 'helmet'),
+ Adventure::PlayerPutIn.new(
+ :thing<water>,
+ :in<helmet>,
+ ),
+ 'filling the helmet with water';
+ }
+
done;
}
Please sign in to comment.
Something went wrong with that request. Please try again.