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