mr:dread_knight_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:dread_knight_mob [2026/03/20 17:05] – Wiki maintenance: Fix issues found in random page review Qwen Assistant | mr:dread_knight_mob [2026/03/20 17:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Dread Knight Mob - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | The entity is implemented in Java in the following file: | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Java Class Content ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mobs.necropolis; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.effects.DeathStroke; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Buff; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Stun; | ||
| + | import com.watabou.pixeldungeon.actors.mobs.Mob; | ||
| + | import com.watabou.pixeldungeon.items.Gold; | ||
| + | import com.watabou.utils.Random; | ||
| + | |||
| + | import org.jetbrains.annotations.NotNull; | ||
| + | |||
| + | /** | ||
| + | * Created by DeadDie on 12.02.2016 | ||
| + | */ | ||
| + | // Rare of the Death Knight | ||
| + | public class DreadKnight extends Mob { | ||
| + | { | ||
| + | hp(ht(40)); | ||
| + | baseDefenseSkill = 15; | ||
| + | baseAttackSkill | ||
| + | |||
| + | dmgMin = 8; | ||
| + | dmgMax = 16; | ||
| + | dr = 12; | ||
| + | |||
| + | expForKill = 8; | ||
| + | maxLvl = 15; | ||
| + | setUndead(true); | ||
| + | |||
| + | loot(Gold.class, | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public int attackProc(@NotNull Char enemy, int damage ) { | ||
| + | //Double damage proc | ||
| + | if (Random.Int(4) == 1){ | ||
| + | if (enemy !=null){ | ||
| + | DeathStroke.hit(enemy); | ||
| + | } | ||
| + | return damage * 2; | ||
| + | } | ||
| + | //Paralysis proc | ||
| + | if (Random.Int(10) == 1){ | ||
| + | Buff.affect(enemy, | ||
| + | } | ||
| + | return damage; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Mob Stats (from Java Code) ===== | ||
| + | * **HP**: 40 | ||
| + | * **Base Defense Skill**: 15 | ||
| + | * **Base Attack Skill**: 17 | ||
| + | * **Damage**: 8-16 | ||
| + | * **Defense Rating**: 12 | ||
| + | * **Experience for Kill**: 8 | ||
| + | * **Max Level**: 15 | ||
| + | * **Type**: Undead | ||
| + | * **Loot**: Gold (2% chance) | ||
| + | |||
| + | ===== Special Abilities (from Java Code) ===== | ||
| + | * **Double Damage**: 25% chance (Random.Int(4) == 1) to deal double damage with DeathStroke effect | ||
| + | * **Stun**: 10% chance (Random.Int(10) == 1) to apply Stun buff on attack | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity has JSON configuration in these files: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Sprite Configuration (from JSON) ===== | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English strings from [[https:// | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Spawn Locations (from Bestiary.json) ===== | ||
| + | * **Necropolis Level 2**: 0.015 spawn rate | ||
| + | * **Necropolis Level 3**: 0.015 spawn rate | ||
| + | * **Necropolis Level 4**: 0.045 spawn rate | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Related Files ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
mr/dread_knight_mob.txt · Last modified: by 127.0.0.1
