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 drop things in held containers

lue++
  • Loading branch information...
commit 999dfc8571f7c69ae33af86775f00630faad365d 1 parent aff9965
Carl Mäsak authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  bin/crypt
3  bin/crypt
@@ -838,7 +838,7 @@ class Adventure::Engine {
838 838
             unless defined $!player_location;
839 839
 
840 840
         die X::Adventure::PlayerDoesNotHave.new(:$thing)
841  
-            unless %!thing_rooms{$thing} eq 'player inventory';
  841
+            unless self.thing_is_in($thing, 'player inventory');
842 842
 
843 843
         my @events = Adventure::PlayerDropped.new(:$thing);
844 844
         self!apply_and_return: @events;
@@ -2618,7 +2618,6 @@ multi MAIN('test') {
2618 2618
                 :thing<water>,
2619 2619
             ),
2620 2620
             'dropping water in the helmet';
2621  
-        )
2622 2621
     }
2623 2622
 
2624 2623
     done;

0 notes on commit 999dfc8

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