Sha256: 41ee571741b9654c3e79e3aec263c6430d63f724f337e66f8c961d2907c832b2

Contents?: true

Size: 1.04 KB

Versions: 36

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(6..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

36 entries across 36 versions & 1 rubygems

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