Sha256: e2d5901cff783d581e02a37798ed7c09ddc935d45396731b1263deb24ab09151

Contents?: true

Size: 624 Bytes

Versions: 15

Compression:

Stored size: 624 Bytes

Contents

# lib/gemwarrior/entities/weapons/spear.rb
# Entity::Item::Weapon::Spear

require_relative '../weapon'

module Gemwarrior
  class Spear < Weapon
    def initialize
      super

      self.name         = 'spear'
      self.name_display = 'Spear'
      self.description  = 'About six feet in length and razor-sharp at the point, this spear requires two hands, but only one good stab.'
      self.atk_lo       = 3
      self.atk_hi       = 7
    end

    def use(world)
      puts 'This spear does, indeed, appear to strike fear upon that which is near.'
      { 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/spear.rb
gemwarrior-0.12.7 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.12.6 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.12.5 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.12.4 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.12.3 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.12.2 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.12.1 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.12.0 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.11.5 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.11.4 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.11.3 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.11.2 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.11.1 lib/gemwarrior/entities/weapons/spear.rb
gemwarrior-0.11.0 lib/gemwarrior/entities/weapons/spear.rb