class Gemwarrior::Mace
Public Class Methods
new()
click to toggle source
Calls superclass method
Gemwarrior::Weapon::new
# File lib/gemwarrior/entities/weapons/mace.rb, line 8 def initialize super self.name = 'mace' self.name_display = 'Mace' self.description = 'Sharp spikes atop a steel ball, affixed to a sturdy wooden handle. You could do damage with this.' self.atk_lo = 4 self.atk_hi = 6 self.dex_mod = -2 end
Public Instance Methods
use(world)
click to toggle source
# File lib/gemwarrior/entities/weapons/mace.rb, line 19 def use(world) puts 'You swing the mace around a few times, really testing out its smashability.' { type: nil, data: nil } end