en:rpd:warlock_mob
Table of Contents
Warlock Mob
The Warlock is a magic-using mob in Remixed Dungeon, typically appearing as a dwarf warlock with advanced magical abilities. When dwarves' interests shifted from engineering to arcane arts, warlocks came to power in the city.
Description
When dwarves' interests shifted from engineering to arcane arts, warlocks came to power in the city. They started with elemental magic, but soon switched to demonology and necromancy. Warlocks are formidable spellcasters found in the deeper parts of the dungeon.
Stats
- HP: 70
- Attack Skill: 25
- Defense Skill: 18
- Damage: 12-20
- Defense Rate (DR): 8
- EXP for Kill: 11
- Max Level: 21
Behavior
- Magic-focused: Warlocks primarily use magical attacks rather than physical combat
- Teleportation Defense: When health drops below certain thresholds (2/3 and 1/3), warlocks can blink away from attackers
- Blink Mechanics:
- At 2/3 health remaining, warlock teleports away when taking damage that would drop them below this threshold
- At 1/3 health remaining, warlock teleports again when taking damage that would drop below this threshold
- Zapping attacks: Uses shadow bolt attacks against enemies
Special Abilities
Drops
- Potion (83% chance) - Category: Potion
Strategies
- Close Combat: Warlocks are vulnerable in melee combat where they can't zap effectively
- Blink Disruption: The teleportation ability can be unpredictable, so plan your positioning carefully
- Ranged Caution: Be careful when engaging from range as warlocks can cast shadow bolts effectively
Code References
- Java Class: Warlock.java - Core implementation
- Entity Kind: getEntityKind() returns “Warlock” in Java code
- Stats verification: Extracted directly from Warlock.java constructor (hp: 70, attack skill: 25, defense skill: 18, damage: 12-20, defense rate: 8, exp: 11, maxLvl: 21)
- Blink Mechanics: defenseProc method handles teleportation at health thresholds (2/3 and 1/3)
- Zapping Ability: zap method with Weakness effect
- Weakness Effect: Random.Int(2) == 0 for 50% chance to apply Weakness
- Death Resistance: addResistance(Death.class) - immunity to Death enchantment
- Blink Implementation: BlinkAwayFromChar class - handles the actual teleportation
- Loot System: loot(Treasury.Category.POTION, 0.83f) - 83% chance for potion drop
- Treasury System: Treasury class - manages random loot drops
- Ballistica System: canAttack method - handles ranged attack targeting
- Zap Effect: fx method - visual and sound effects for zapping
- Death Reporting: checkDeathReport - handles death messages
- String Resources:
- English strings - Name, gender, objective, description, and killed messages
- Russian strings - Russian localization
- Magic Missile Effect: MagicMissile class - visual zap effect
- Weakness Buff: Weakness class - implementation of weakness effect
- Hero Class Gender Check: getHeroClass() - checks hero gender for weakness effect
- Machine-readable data: mr:warlock_mob
See Also
en/rpd/warlock_mob.txt · Last modified: by 127.0.0.1

