Sha256: 462d6346c466d704efbde26c58b65ddb71011cfab44bc05da7db9106ecfdb2f2

Contents?: true

Size: 1.04 KB

Versions: 12

Compression:

Stored size: 1.04 KB

Contents

# lib/gemwarrior/entities/monsters/diaman.rb
# Entity::Creature::Monster::Diaman

require_relative '../monster'

module Gemwarrior
  class Diaman < Monster
    def initialize
      super

      self.name         = 'diaman'
      self.name_display = 'Diaman'
      self.description  = 'Crystalline structure in the form of a man, lumbering toward you, with outstretched, edged pincers.'
      self.battlecry    = 'Precious human, prepare to be lost to the annals of time!'
      self.face         = 'bright'
      self.hands        = 'jagged'
      self.mood         = 'adamant'

      self.level        = rand(8..10)
      self.hp_cur       = rand((level * 2)..(level * 3))
      self.hp_max       = hp_cur
      self.atk_lo       = rand(level..(level * 2.5).floor)
      self.atk_hi       = rand((level * 2.5).floor..(level * 3).floor)
      self.defense      = rand(5..7)
      self.dexterity    = rand(8..10)

      self.rox          = rand((level * 2)..(level * 3))
      self.xp           = rand(level..(level * 2))
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gemwarrior-0.12.5 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.12.4 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.12.3 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.12.2 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.12.1 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.12.0 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.11.5 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.11.4 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.11.3 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.11.2 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.11.1 lib/gemwarrior/entities/monsters/diaman.rb
gemwarrior-0.11.0 lib/gemwarrior/entities/monsters/diaman.rb