Sha256: bf2a69b80d654d82313148eb293b08a190319e736fe973b6a59313fd3f820214

Contents?: true

Size: 940 Bytes

Versions: 7

Compression:

Stored size: 940 Bytes

Contents

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

require_relative '../item'

module Gemwarrior
  class Rope < Item
    def initialize
      self.name         = '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.'
      self.atk_lo       = nil
      self.atk_hi       = nil
      self.takeable     = false
      self.useable      = true
      self.equippable   = false
      self.equipped     = false
    end
    
    def use(player = nil)
      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
      
      {:type => 'move', :data => 'Snow Fields (Southeast)'}
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gemwarrior-0.8.6 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.8.5 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.8.3 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.8.2 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.8.1 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.8.0 lib/gemwarrior/entities/items/rope.rb
gemwarrior-0.7.9 lib/gemwarrior/entities/items/rope.rb