Method: Olib::Jar#shake
- Defined in:
- lib/Olib/objects/jar.rb
#shake ⇒ Object
32 33 34 35 36 37 |
# File 'lib/Olib/objects/jar.rb', line 32 def shake result = Library.do "shake ##{@id}", /^You give your #{@noun} a hard shake|before you realize that it is empty/ @empty = true if result =~ /realize that it is empty/ return Gem_O.new(GameObj.left_hand) if GameObj.right_hand.id == @id return Gem_O.new(GameObj.right_hand) if GameObj.left_hand.id == @id end |