Sha256: f0ed914699341052f1073ea1927c553d2eebb49c62cf8460f08d8df477582721

Contents?: true

Size: 850 Bytes

Versions: 7

Compression:

Stored size: 850 Bytes

Contents

# lib/gemwarrior/entities/items/waterfall.rb
# Item::Waterfall

require_relative '../item'

module Gemwarrior
  class Waterfall < Item
    def initialize
      self.name         = 'waterfall'
      self.description  = 'Gallons of murky, sparkling water fall downward from an unknown spot in the sky, ending in a pool on the ground, yet never overflowing.'
      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 stretch out your hand and touch the waterfall. It stings you with its cold and forceful gushing. Your hand is now wet and rougher than before. In time, it will dry.'
      {:type => 'dmg', :data => rand(0..1)}
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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