Sha256: 44a0ec5ac9bd4ad165fb8f2ff45e24cd3fd743f6a5ff6f0da14ddd692c1f89fb

Contents?: true

Size: 665 Bytes

Versions: 33

Compression:

Stored size: 665 Bytes

Contents

# lib/gemwarrior/entities/weapons/dagger.rb
# Entity::Item::Weapon::Dagger

require_relative '../weapon'

module Gemwarrior
  class Dagger < Weapon
    def initialize
      super

      self.name         = 'dagger'
      self.name_display = 'Dagger'
      self.description  = 'Flint that has been sharpened to a point, attached to a block of smooth granite by thin rope. Truly a work of art.'
      self.atk_lo       = 1
      self.atk_hi       = 3
      self.dex_mod      = 1
    end

    def use(world)
      puts 'You graze the blade of the dagger lightly and find it to be plenty sharp.'
      { 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/dagger.rb
gemwarrior-0.15.19 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.18 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.17 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.16 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.15 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.14 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.13 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.12 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.11 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.10 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.9 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.8 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.7 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.6 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.5 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.4 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.3 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.2 lib/gemwarrior/entities/weapons/dagger.rb
gemwarrior-0.15.1 lib/gemwarrior/entities/weapons/dagger.rb