Sha256: 154dcff5baba2644d3a64b3c1a533a1d42fc0b6df4ac8f95ecd5ca3818a134a2

Contents?: true

Size: 684 Bytes

Versions: 28

Compression:

Stored size: 684 Bytes

Contents

# lib/gemwarrior/entities/items/gun.rb
# Item::Gun

require_relative '../item'

module Gemwarrior
  class Gun < Item
    def initialize
      self.name         = 'gun'
      self.description  = 'Pew pew goes this firearm, you suspect.'
      self.atk_lo       = 3
      self.atk_hi       = 5
      self.takeable     = true
      self.useable      = true
      self.equippable   = true
      self.equipped     = false
    end

    def use(player = nil)
      puts 'You pull the trigger on the gun, but realize there are no bullets in it. So, it does not do much except cause a barely audible *click* sound.'
      {:type => nil, :data => nil}
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
gemwarrior-0.9.27 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.26 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.24 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.23 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.22 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.21 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.20 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.19 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.18 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.17 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.16 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.15 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.14 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.13 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.12 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.10 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.9 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.8 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.7 lib/gemwarrior/entities/items/gun.rb
gemwarrior-0.9.6 lib/gemwarrior/entities/items/gun.rb