Sha256: a43c9ed7f36b69e5ce7271d8dd2ac36e07d288469bb74ae95622ce83b19bbaa5
Contents?: true
Size: 824 Bytes
Versions: 5
Compression:
Stored size: 824 Bytes
Contents
# lib/gemwarrior/entities/items/bed.rb # Item::Bed require_relative '../item' module Gemwarrior class Bed < Item def initialize self.name = 'bed' self.description = 'The place where you sleep when you are not adventuring.' self.atk_lo = nil self.atk_hi = nil self.takeable = false self.useable = true self.equippable = false self.equipped = false end def use puts 'You unmake the bed, get under the covers, close your eyes, and begin to think about all the things you need to do today. You realize sleep is not one of them and quickly get back up, remake the bed, and get on about your day.' puts 'You regain a few hit points.' {:type => 'rest', :data => 5} end end end
Version data entries
5 entries across 5 versions & 1 rubygems