mr:jar_of_souls_mob
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mr:jar_of_souls_mob [2025/12/25 18:23] – auto lint fix Mikhael | mr:jar_of_souls_mob [2026/03/23 18:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Jar Of Souls Mob - Code References ====== | ||
| + | |||
| + | ===== Entity Information ===== | ||
| + | * **Entity Kind:** JarOfSouls | ||
| + | * **Entity Type:** Mob (undead) | ||
| + | * **Namespace: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Java Class Implementation ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mobs.necropolis; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.mobs.common.MobSpawner; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.mobs.Mob; | ||
| + | |||
| + | import org.jetbrains.annotations.NotNull; | ||
| + | |||
| + | public class JarOfSouls extends Mob { | ||
| + | |||
| + | public JarOfSouls() { | ||
| + | hp(ht(70)); | ||
| + | baseDefenseSkill = 5; | ||
| + | baseAttackSkill = 1; | ||
| + | dr = 0; | ||
| + | |||
| + | dmgMin = 0; | ||
| + | dmgMax = 0; | ||
| + | pacified = true; | ||
| + | |||
| + | expForKill = 0; | ||
| + | maxLvl = 13; | ||
| + | |||
| + | postpone(20); | ||
| + | |||
| + | setUndead(true); | ||
| + | |||
| + | //loot = new SoulShard(); | ||
| + | // | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean act(){ | ||
| + | super.act(); | ||
| + | if (enemySeen){ | ||
| + | playAttack(getEnemy().getPos()); | ||
| + | MobSpawner.spawnRandomMob(level(), | ||
| + | postpone(15); | ||
| + | } | ||
| + | return true; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean getCloser(int target, boolean ignorePets) { | ||
| + | return false; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean getFurther(int target) { | ||
| + | return false; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean canBePet() { | ||
| + | return false; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean zap(@NotNull Char enemy) { | ||
| + | return false; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Entity Stats (from Code) ===== | ||
| + | * **HP:** 70 | ||
| + | * **Base Defense Skill:** 5 | ||
| + | * **Base Attack Skill:** 1 | ||
| + | * **Defense Rating (DR):** 0 | ||
| + | * **Damage:** 0-0 (does not deal direct damage) | ||
| + | * **EXP for Kill:** 0 | ||
| + | * **Max Level:** 13 | ||
| + | * **Pacified: | ||
| + | * **Undead:** true | ||
| + | * **Can Be Pet:** false | ||
| + | * **Action Delay:** 20 turns (reduced to 15 when enemy seen) | ||
| + | |||
| + | ===== Entity Behavior (from Code) ===== | ||
| + | * Does not move (getCloser and getFurther return false) | ||
| + | * When enemy is seen, spawns random mob at its position using MobSpawner.spawnRandomMob() | ||
| + | * Uses playAttack() animation when attacking | ||
| + | * Does not zap enemies | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no JSON configuration exists | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | **English (values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | **Russian (values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | **Spanish (values-es/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | **Polish (values-pl/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | **Ukrainian (values-uk/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | **Indonesian (values-in/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Sprite Reference ===== | ||
| + | * Sprite file: [[https:// | ||
| + | * Wiki image reference: {{ rpd: | ||
| + | |||
| + | ===== Related Entities ===== | ||
| + | * Found in Necropolis dungeon level | ||
| + | * Spawns random mobs when detecting enemies | ||
| + | * Related to SoulShard item (commented out in code) | ||
| + | |||
| + | {{tag> mr mob undead necropolis code_reference}} | ||
