class Gemwarrior::Hut

Public Class Methods

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

  self.name         = 'hut'
  self.name_display = 'Hut'
  self.description  = 'A simple thatched hut, sitting in the middle of the plains. Nothing about it seems odd, except its existence among the otherwise featureless landscape.'
end

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/items/hut.rb, line 16
def use(world)
  puts 'You peer inside, but it is completely vacant at the moment, leaving you marginally disappointed.'

  { type: nil, data: nil }
end