Sha256: 06d8621598403beb20ee711847cb111030819a89dbcdec67be71132624acca4d
Contents?: true
Size: 842 Bytes
Versions: 9
Compression:
Stored size: 842 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
9 entries across 9 versions & 1 rubygems