Sha256: 7b77f06e76763c09d86ee8e79dbb97facf91d1aadd3605b05486aa1a90094416
Contents?: true
Size: 830 Bytes
Versions: 4
Compression:
Stored size: 830 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(inventory = 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
4 entries across 4 versions & 1 rubygems