class Gemwarrior::Opalaser

Public Class Methods

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

  self.name         = 'opalaser'
  self.name_display = 'Opalaser'
  self.description  = 'Gleaming with supernatural light, this object feels alien, yet familiar.'
  self.atk_lo       = 9
  self.atk_hi       = 11
  self.dex_mod      = 2
end

Public Instance Methods

use(world) click to toggle source
# File lib/gemwarrior/entities/weapons/opalaser.rb, line 19
def use(world)
  puts 'You pull the "trigger" on the opalaser, but nothing happens.'
  { type: nil, data: nil }
end