Sha256: 803eae88d7e7b82d9f325ab247cb625cfe96263c185306b00df17c3a82e9b727

Contents?: true

Size: 827 Bytes

Versions: 7

Compression:

Stored size: 827 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(player = nil)
      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

7 entries across 7 versions & 1 rubygems

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