class Gemwarrior::Map

Public Class Methods

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

  self.name         = 'map'
  self.name_display = 'Map'
  self.description  = 'The land of Jool is contained on this piece of canvas, in a useful, if not very detailed, manner.'
  self.takeable     = true
end

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/items/map.rb, line 17
def use(world)
  puts 'You unfold the piece of worn canvas and study the markings upon it, always making sure to update it with new places you find.'

  { type: 'action', data: 'map' }
end