Sha256: 1149c860da59515e6e05a7a3f0b20c363d33f3fae4ffa0e67c656124bdb2a824

Contents?: true

Size: 645 Bytes

Versions: 33

Compression:

Stored size: 645 Bytes

Contents

# lib/gemwarrior/entities/weapons/mace.rb
# Entity::Item::Weapon::Mace

require_relative '../weapon'

module Gemwarrior
  class Mace < Weapon
    def initialize
      super

      self.name         = 'mace'
      self.name_display = 'Mace'
      self.description  = 'Sharp spikes atop a steel ball, affixed to a sturdy wooden handle. You could do damage with this.'
      self.atk_lo       = 4
      self.atk_hi       = 6
      self.dex_mod      = -2
    end
    
    def use(world)
      puts 'You swing the mace around a few times, really testing out its smashability.'
      { type: nil, data: nil }
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
gemwarrior-0.15.20 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.19 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.18 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.17 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.16 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.15 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.14 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.13 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.12 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.11 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.10 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.9 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.8 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.7 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.6 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.5 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.4 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.3 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.2 lib/gemwarrior/entities/weapons/mace.rb
gemwarrior-0.15.1 lib/gemwarrior/entities/weapons/mace.rb