class Gemwarrior::SparklyThing

Public Class Methods

new() click to toggle source
Calls superclass method Gemwarrior::Item::new
# File lib/gemwarrior/entities/items/sparkly_thing.rb, line 8
def initialize
  super

  self.name         = 'sparkly_thing'
  self.name_display = 'SparklyThing(tm)'
  self.description  = 'The sparkling that this thing does is unimaginably brilliant.'
  self.takeable     = true
end

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/items/sparkly_thing.rb, line 17
def use(world)
  puts 'Everything, and I mean *everything*, begins to sparkle. Huh.'
  { type: nil, data: nil }
end