class Gemwarrior::Spear

Public Class Methods

new() click to toggle source
Calls superclass method Gemwarrior::Weapon::new
# File lib/gemwarrior/entities/weapons/spear.rb, line 8
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

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/weapons/spear.rb, line 19
def use(world)
  puts 'This spear does, indeed, appear to strike fear upon that which is near.'
  { type: nil, data: nil }
end