Sha256: cafa3ca265ed4d7ca57b1fb2277e564b530882e8b50b785c63d14a76ad4719de
Contents?: true
Size: 848 Bytes
Versions: 5
Compression:
Stored size: 848 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 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.' puts {:type => 'dmg', :data => rand(0..1)} end end end
Version data entries
5 entries across 5 versions & 1 rubygems