mr:zombie_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mr:zombie_mob [2026/01/01 06:23] – Wiki documentation improvements: Fix naming conventions, add data sources, create missing pages mike | mr:zombie_mob [2026/03/16 19:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Zombie Mob - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Implementation Details ===== | ||
| + | * **HP**: 33 | ||
| + | * **Defense Skill**: 10 | ||
| + | * **Attack Skill**: 10 | ||
| + | * **Damage**: 3-10 | ||
| + | * **Defense Rating**: 10 | ||
| + | * **EXP for Kill**: 6 | ||
| + | * **Max Level**: 15 | ||
| + | * **Type**: Undead (immune to many effects via `setUndead(true)`) | ||
| + | * **Special Attack**: 33% chance (1 in 3) to poison target on hit for 2-4 seconds | ||
| + | * **Loot**: Gold (2% drop chance) | ||
| + | * **Spawn Location**: Necropolis levels (necro1, necro2, necro3) | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | Spawn configuration in Bestiary.json: | ||
| + | * **necro1**: Zombie spawn rate 1.0 | ||
| + | * **necro2**: Zombie spawn rate 1.0 (with ExplodingSkull, | ||
| + | * **necro3**: Zombie spawn rate 2.0 (with ExplodingSkull, | ||
| + | * [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English string resources: | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | String resources available in multiple languages: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * And other localization files | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented entirely in Java. No Lua script exists for Zombie. | ||
| + | |||
| + | ===== Key Code Fragments ===== | ||
| + | |||
| + | **Java Implementation (Zombie.java)**: | ||
| + | <code java> | ||
| + | public class Zombie extends Mob { | ||
| + | { | ||
| + | hp(ht(33)); | ||
| + | baseDefenseSkill = 10; | ||
| + | baseAttackSkill | ||
| + | dmgMin = 3; | ||
| + | dmgMax = 10; | ||
| + | dr = 10; | ||
| + | |||
| + | expForKill = 6; | ||
| + | maxLvl = 15; | ||
| + | |||
| + | setUndead(true); | ||
| + | loot(Gold.class, | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public int attackProc(@NotNull Char enemy, int damage ) { | ||
| + | //Poison proc - 33% chance (1 in 3) | ||
| + | if (Random.Int(3) == 1){ | ||
| + | Buff.affect( enemy, Poison.class, | ||
| + | } | ||
| + | return damage; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Related mr: Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | ===== Related Wiki Pages ===== | ||
| + | * [[en: | ||
| + | * [[en: | ||
