Sha256: 21f8616f4a131f67c23f1a9b217b21b7deda8ffa9b10a822bf25d8dd3ee56cc8

Contents?: true

Size: 679 Bytes

Versions: 9

Compression:

Stored size: 679 Bytes

Contents

# lib/gemwarrior/entities/items/map.rb
# Item::Map

require_relative '../item'

module Gemwarrior
  class Map < Item
    def initialize
      self.name         = 'map'
      self.description  = 'The land of Jool is contained on this piece of canvas, in a useful, if not very detailed, manner.'
      self.atk_lo       = nil
      self.atk_hi       = nil
      self.takeable     = true
      self.useable      = true
      self.equippable   = false
      self.equipped     = false
    end

    def use(player = nil)
      puts 'You unfold the piece of worn canvas, and study the markings upon it.'

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gemwarrior-0.9.37 lib/gemwarrior/entities/items/map.rb
gemwarrior-0.9.36 lib/gemwarrior/entities/items/map.rb
gemwarrior-0.9.35 lib/gemwarrior/entities/items/map.rb
gemwarrior-0.9.34 lib/gemwarrior/entities/items/map.rb
gemwarrior-0.9.33 lib/gemwarrior/entities/items/map.rb
gemwarrior-0.9.32 lib/gemwarrior/entities/items/map.rb
gemwarrior-0.9.31 lib/gemwarrior/entities/items/map.rb
gemwarrior-0.9.30 lib/gemwarrior/entities/items/map.rb
gemwarrior-0.9.28 lib/gemwarrior/entities/items/map.rb