Sha256: bb7a4b125004222f7f3a0b10e83dca7ed689076a42a9e284cb0b6173c6494d11
Contents?: true
Size: 824 Bytes
Versions: 9
Compression:
Stored size: 824 Bytes
Contents
# lib/gemwarrior/entities/items/waterfall.rb # Item::Waterfall require_relative '../item' module Gemwarrior class Waterfall < Item def initialize super 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 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