Sha256: e2d5901cff783d581e02a37798ed7c09ddc935d45396731b1263deb24ab09151
Contents?: true
Size: 624 Bytes
Versions: 15
Compression:
Stored size: 624 Bytes
Contents
# lib/gemwarrior/entities/weapons/spear.rb # Entity::Item::Weapon::Spear require_relative '../weapon' module Gemwarrior class Spear < Weapon def initialize super self.name = 'spear' self.name_display = 'Spear' self.description = 'About six feet in length and razor-sharp at the point, this spear requires two hands, but only one good stab.' self.atk_lo = 3 self.atk_hi = 7 end def use(world) puts 'This spear does, indeed, appear to strike fear upon that which is near.' { type: nil, data: nil } end end end
Version data entries
15 entries across 15 versions & 1 rubygems