Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[bin/crypt] added helmet to hall

  • Loading branch information...
commit e4f2c0ce868fedf2fd6c6db76cf89daed9f32a56 1 parent 1df2f52
@masak authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 bin/crypt
View
16 bin/crypt
@@ -1042,6 +1042,10 @@ class Crypt::Game {
}
};
+ # Things in hall
+ .place_thing: 'helmet', 'hall';
+ .make_thing_carryable: 'helmet';
+
.place_player: $!player_location = 'clearing';
}
@@ -2286,6 +2290,7 @@ multi MAIN('test') {
Adventure::PlayerLooked.new(
:room<hall>,
:exits<north>,
+ :things<helmet>,
),
'looking with the flashlight switched on';
}
@@ -2338,6 +2343,17 @@ multi MAIN('test') {
'can walk down after solving the hanoi game (+)';
}
+ {
+ my $game = game_from_hall();
+
+ $game.use('flashlight');
+ is $game.take('helmet'),
+ Adventure::PlayerTook.new(
+ :thing<helmet>,
+ ),
+ 'taking the helmet (+)';
+ }
+
done;
}
Please sign in to comment.
Something went wrong with that request. Please try again.