Sha256: ae67dd951864cf4fb278eb56b86f0159d5558f8138d974f2ce35e79d614f7c10
Contents?: true
Size: 891 Bytes
Versions: 7
Compression:
Stored size: 891 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(player = nil) Animation::run({:phrase => '** ZZZZZ **'}) 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
7 entries across 7 versions & 1 rubygems