class Gemwarrior::Gun

Public Class Methods

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

  self.name         = 'gun'
  self.name_display = 'Gun'
  self.description  = 'Pew pew goes this firearm, you suspect (if it has bullets).'
  self.atk_lo       = 2
  self.atk_hi       = 6
  self.dex_mod      = 2
end

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/weapons/gun.rb, line 19
def use(world)
  puts 'You pull the trigger on the gun, but it does not fire. An inscription on the barrel reads: "Only shoots when pointed at a monster." How safe!'
  { type: nil, data: nil }
end