Sha256: 2141cfd482b881f8b85d63e9a4397284a13637b97c71f9ca9721a15278bdefe3
Contents?: true
Size: 713 Bytes
Versions: 4
Compression:
Stored size: 713 Bytes
Contents
# lib/gemwarrior/entities/items/spear.rb # Item::Spear require_relative '../item' module Gemwarrior class Spear < Item def initialize self.name = 'spear' self.description = 'Sharp spikes atop a steel ball, affixed to a sturdy wooden handle. You could do damage with this.' self.atk_lo = 3 self.atk_hi = 7 self.takeable = true self.useable = true self.consumable = false self.equippable = true self.equipped = false end def use(player = nil) puts 'This spear does, indeed, appear to strike fear upon that which is near.' { type: nil, data: nil } end end end
Version data entries
4 entries across 4 versions & 1 rubygems