Sha256: 1b10844fcee6a18561f60f004b415b2fed5e8e2f42299ebd2eb7b052b97f2188

Contents?: true

Size: 810 Bytes

Versions: 4

Compression:

Stored size: 810 Bytes

Contents

# lib/gemwarrior/entities/items/couch.rb
# Item::Couch

require_relative '../item'

module Gemwarrior
  class Couch < Item
    def initialize
      self.name         = 'couch'
      self.description  = 'Ever wanted to sit on a cloud? Now is your chance.'
      self.atk_lo       = nil
      self.atk_hi       = nil
      self.takeable     = false
      self.useable      = true
      self.equippable   = false
      self.equipped     = false
    end
    
    def use
      puts 'Your body comes to rest somewhere below the surface of the cloudy apparatus, almost as if it were floating *amongst* the couch. The feeling is heavenly, and you actually feel somewhat better after getting back up.'
      puts 'You regain a hit point.'
      {:type => 'rest', :data => 1}
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gemwarrior-0.7.4 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.7.3 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.7.2 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.7.1 lib/gemwarrior/entities/items/couch.rb