Sha256: c349a0f0f6137f6eb9681e8a21e390cb1c363acd83e1b0a9b50805c42917ed46

Contents?: true

Size: 667 Bytes

Versions: 9

Compression:

Stored size: 667 Bytes

Contents

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

require_relative '../item'

module Gemwarrior
  class Tent < Item
    def initialize
      super

      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.number_of_uses = 5
    end

    def use(player = nil)
      { type: 'tent', data: self.number_of_uses }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gemwarrior-0.10.8 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.10.7 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.10.6 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.10.5 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.10.4 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.10.2 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.10.1 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.10.0 lib/gemwarrior/entities/items/tent.rb
gemwarrior-0.9.39 lib/gemwarrior/entities/items/tent.rb