Sha256: 8c7aeb561b8147503276cd4da20d11f3a190ce5fd2969a6d7e6e31b2339c0768

Contents?: true

Size: 633 Bytes

Versions: 13

Compression:

Stored size: 633 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

13 entries across 13 versions & 1 rubygems

Version Path
gemwarrior-0.9.10 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.9 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.8 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.7 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.6 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.5 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.4 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.3 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.2 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.1 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.0 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.8.8 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.8.7 lib/gemwarrior/entities/items/tent.rb