Sha256: c9902f2039585f03257777fa4cb822367eab9b396ffb68395160c4b086e42ea3

Contents?: true

Size: 637 Bytes

Versions: 7

Compression:

Stored size: 637 Bytes

Contents

# lib/gemwarrior/entities/items/tent.rb
# Item::Tent

require_relative '../item'

module Gemwarrior
  class Tent < Item
    def initialize
      self.name         = 'tent'
      self.description  = 'A magical, two-room suite pops up when you flick this otherwise folded piece of canvas just right, perfect for a night\'s rest.'
      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)
      {:type => 'action', :data => 'rest'}
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gemwarrior-0.8.6 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.8.5 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.8.3 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.8.2 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.8.1 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.8.0 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.7.9 lib/gemwarrior/entities/items/tent.rb