Sha256: 96fdd537570a6cfdc1cf886eb09587016d48f1a28a53108d7ac2b831c96e4175

Contents?: true

Size: 695 Bytes

Versions: 9

Compression:

Stored size: 695 Bytes

Contents

# lib/gemwarrior/entities/items/spear.rb
# Item::Spear

require_relative '../item'

module Gemwarrior
  class Spear < Item
    def initialize
      super

      self.name         = 'spear'
      self.description  = 'Sharp spikes atop a steel ball, affixed to a sturdy wooden handle. You could do damage with this.'
      self.atk_lo       = 3
      self.atk_hi       = 7
      self.takeable     = true
      self.useable      = true
      self.consumable   = false
      self.equippable   = true
    end
    
    def use(player = nil)
      puts 'This spear does, indeed, appear to strike fear upon that which is near.'
      { type: nil, data: nil }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gemwarrior-0.10.8 lib/gemwarrior/entities/items/spear.rb
gemwarrior-0.10.7 lib/gemwarrior/entities/items/spear.rb
gemwarrior-0.10.6 lib/gemwarrior/entities/items/spear.rb
gemwarrior-0.10.5 lib/gemwarrior/entities/items/spear.rb
gemwarrior-0.10.4 lib/gemwarrior/entities/items/spear.rb
gemwarrior-0.10.2 lib/gemwarrior/entities/items/spear.rb
gemwarrior-0.10.1 lib/gemwarrior/entities/items/spear.rb
gemwarrior-0.10.0 lib/gemwarrior/entities/items/spear.rb
gemwarrior-0.9.39 lib/gemwarrior/entities/items/spear.rb