Sha256: 7149f3bebea53750ded91af19257e8c6a21d585578056ef8c5c11da0a10a4ade

Contents?: true

Size: 1002 Bytes

Versions: 48

Compression:

Stored size: 1002 Bytes

Contents

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

require_relative '../item'

module Gemwarrior
  class Couch < Item
    def initialize
      super

      self.name         = 'couch'
      self.name_display = 'Couch'
      self.description  = 'Ever wanted to sit on a cloud? Now is your chance.'
    end

    def use(world)
      if world.player.at_full_hp?
        puts 'You "sit" on the impossibly soft surface of the furniture, but even after a few minutes of this seemingly heavenly hedonism you don\'t feel significantly better and decide to get up again.'
        { type: nil, data: nil }
      else
        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 few hit points.'.colorize(:green)
        { type: 'rest', data: 4 }
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
gemwarrior-0.15.20 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.19 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.18 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.17 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.16 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.15 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.14 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.13 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.12 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.11 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.10 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.9 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.8 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.7 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.6 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.5 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.4 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.3 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.2 lib/gemwarrior/entities/items/couch.rb
gemwarrior-0.15.1 lib/gemwarrior/entities/items/couch.rb