class Gemwarrior::Stone

Public Class Methods

new() click to toggle source
Calls superclass method Gemwarrior::Weapon::new
# File lib/gemwarrior/entities/weapons/stone.rb, line 8
def initialize
  super

  self.name         = 'stone'
  self.name_display = 'Stone'
  self.description  = 'A small, yet quite sharp, sedimentary pebble, suitable for tossing in amusement, and perhaps combat.'
  self.atk_lo       = 1
  self.atk_hi       = 2
  self.dex_mod      = -1
end

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/weapons/stone.rb, line 19
def use(world)
  puts 'You toss the stone a few feet into the air, and then it falls back into your palm. The experience was truly thrilling.'
  { type: nil, data: nil }
end