Sha256: a905a650c3a6c7f2ee3f0ed789736a6b0587963ad1f014c6f5ee56b2f293d019

Contents?: true

Size: 634 Bytes

Versions: 15

Compression:

Stored size: 634 Bytes

Contents

# lib/gemwarrior/entities/weapons/gun.rb
# Entity::Item::Weapon::Gun

require_relative '../weapon'

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

    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
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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