Method: Gemwarrior::Ladder#use

Defined in:
lib/gemwarrior/entities/items/ladder.rb

#use(world) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/gemwarrior/entities/items/ladder.rb', line 19

def use(world)
  puts 'You grab onto the shaky, rough-hewn, wooden ladder with all your might and start to descend, being extra careful not to loose your grip, which with every moment becomes shakier and shakier.'
  puts

  # stats
  world.player.movements_made += 1

  Animation.run(phrase: USE_TEXT)

  puts 'The last couple of steps are more slippery than you anticipated, so you end up fumbling them, falling a few feet onto the hard ground below. When you regain your composure, you notice your conveyance for descending is now far above you and it is, unfortunately, your closest known exit.'
  puts

  { type: 'move_dangerous', data: 'metal_tunnel-south_entrance' }
end