class Gemwarrior::Dagger
Public Class Methods
new()
click to toggle source
Calls superclass method
Gemwarrior::Weapon::new
# File lib/gemwarrior/entities/weapons/dagger.rb, line 8 def initialize super self.name = 'dagger' self.name_display = 'Dagger' self.description = 'Flint that has been sharpened to a point, attached to a block of smooth granite by thin rope. Truly a work of art.' self.atk_lo = 1 self.atk_hi = 3 self.dex_mod = 1 end
Public Instance Methods
use(world)
click to toggle source
# File lib/gemwarrior/entities/weapons/dagger.rb, line 19 def use(world) puts 'You graze the blade of the dagger lightly and find it to be plenty sharp.' { type: nil, data: nil } end