class Gemwarrior::Keystone

Public Class Methods

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

  self.name         = 'keystone'
  self.name_display = 'Keystone'
  self.description  = 'Certainly greater than the sum of its parts, this smallish stone glows faintly and feels slick to the touch.'
  self.takeable     = true
end

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/items/keystone.rb, line 17
def use(world)
  puts 'The keystone glows a bit brighter when you grasp it tightly.'
  { type: nil, data: nil }
end