Sha256: aca48be833b27cff2c4fa06f57e4cb65ce8bd9576e6a8ecdcb612392a4292615
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
# lib/gemwarrior/entities/items/sparklything.rb # Item::SparklyThing require_relative '../item' module Gemwarrior class SparklyThing < Item def initialize self.name = 'Sparkly Thing(tm)' self.description = 'The sparkling that this thing does is unimaginably brilliant.' self.atk_lo = nil self.atk_hi = nil self.takeable = true self.useable = true self.equippable = false self.equipped = false end def use(inventory = nil) puts 'Everything, and I mean *everything*, begins to sparkle. Huh.' puts {:type => nil, :data => nil} end end end
Version data entries
4 entries across 4 versions & 1 rubygems