Sha256: 3c6ef532424df9eedf66bfebd575d5ae191cbdebdd849acee7c2959f1b213eba

Contents?: true

Size: 823 Bytes

Versions: 26

Compression:

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

26 entries across 26 versions & 1 rubygems

Version Path
gemwarrior-0.9.24 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.23 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.22 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.21 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.20 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.19 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.18 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.17 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.16 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.15 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.14 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.13 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.12 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.10 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.9 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.8 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.7 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.6 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.5 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.9.4 lib/gemwarrior/entities/items/couch.rb