class Gemwarrior::Cup

Public Class Methods

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

  self.name         = 'cup'
  self.name_display = 'Cup'
  self.description  = 'A nice stone mug, perfect for putting things into and then using to carry such things from place to place.'
  self.takeable     = true
end

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/items/cup.rb, line 17
def use(world)
  puts 'Nothing in the cup at the moment, so not very usable.'
  { type: nil, data: nil }
end