Sha256: e9490c002ffa1252641fe1a622b46b2c878bf4f8efc0c40f55fe149c613b4c1f
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 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 worse after getting back up.' puts {:type => 'rest', :data => 1} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemwarrior-0.7.0 | lib/gemwarrior/entities/items/couch.rb |