Sha256: fed1e065155ab9afc9d651cb0120b59c70e73147c0d8ec08e67fea41ad64a00a
Contents?: true
Size: 654 Bytes
Versions: 33
Compression:
Stored size: 654 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 self.dex_mod = -1 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
33 entries across 33 versions & 1 rubygems