Sha256: c87f6b4076f147822e8f9e31854c8b5d4c03b59e7ea0c64495ba3a8b89008c91

Contents?: true

Size: 846 Bytes

Versions: 48

Compression:

Stored size: 846 Bytes

Contents

# lib/gemwarrior/entities/items/rope.rb
# Entity::Item::Rope

require_relative '../item'

module Gemwarrior
  class Rope < Item
    def initialize
      super

      self.name         = 'rope'
      self.name_display = 'Rope'
      self.description  = 'For some reason, a sturdy rope hangs down from a small opening in the metal tunnel\'s ceiling. It appears to hold your weight when taut.'
    end

    def use(world)
      puts 'You hold on to the rope with both hands and begin to climb upwards towards the small opening in the ceiling.'
      puts

      puts 'After a few minutes you pull yourself up onto a field of pure driven snow. Without warning, the rope and opening in the floor vanish.'
      puts
      
      # stats
      world.player.movements_made += 1

      { type: 'move', data: 'Snow Fields (Southeast)' }
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
gemwarrior-0.15.20 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.19 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.18 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.17 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.16 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.15 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.14 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.13 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.12 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.11 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.10 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.9 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.8 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.7 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.6 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.5 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.4 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.3 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.2 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.15.1 lib/gemwarrior/entities/items/rope.rb