Sha256: 9ad5308b01895b031659efdccf3eb0f6a894807de3edb2a5ed6a9f5a77bfc008

Contents?: true

Size: 590 Bytes

Versions: 15

Compression:

Stored size: 590 Bytes

Contents

# lib/gemwarrior/entities/weapons/opalaser.rb
# Entity::Item::Weapon::Opalaser

require_relative '../item'

module Gemwarrior
  class Opalaser < Weapon
    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
    end

    def use(world)
      puts 'You pull the "trigger" on the opalaser, but nothing happens.'
      { type: nil, data: nil }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gemwarrior-0.12.8 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.12.7 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.12.6 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.12.5 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.12.4 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.12.3 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.12.2 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.12.1 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.12.0 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.11.5 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.11.4 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.11.3 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.11.2 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.11.1 lib/gemwarrior/entities/weapons/opalaser.rb
gemwarrior-0.11.0 lib/gemwarrior/entities/weapons/opalaser.rb