Sha256: c30e59c4b24d53d2a318725efa548850b66fe6636184f767e18d16e53056c567
Contents?: true
Size: 687 Bytes
Versions: 9
Compression:
Stored size: 687 Bytes
Contents
# lib/gemwarrior/entities/items/tent.rb # Item::Tent require_relative '../item' module Gemwarrior class Tent < Item def initialize self.name = 'tent' self.description = 'A magical, two-room suite pops up when you flick this otherwise folded piece of canvas just right, perfect for a night\'s rest.' self.atk_lo = nil self.atk_hi = nil self.takeable = true self.useable = true self.equippable = false self.equipped = false self.number_of_uses = 5 end def use(player = nil) { type: 'tent', data: self.number_of_uses } end end end
Version data entries
9 entries across 9 versions & 1 rubygems