Sha256: de5ded01ffbda7b278363f07775f6d6eca807335ab49b619ea3821ffbca02a7d

Contents?: true

Size: 846 Bytes

Versions: 28

Compression:

Stored size: 846 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

28 entries across 28 versions & 1 rubygems

Version Path
gemwarrior-0.9.27 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.26 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.24 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.23 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.22 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.21 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.20 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.19 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.18 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.17 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.16 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.15 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.14 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.13 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.12 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.10 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.9 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.8 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.7 lib/gemwarrior/entities/items/waterfall.rb
gemwarrior-0.9.6 lib/gemwarrior/entities/items/waterfall.rb