mr:enslaved_soul_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mr:enslaved_soul_mob [2026/02/04 23:48] – Fix wiki pages according to standards - Update EnslavedSoul mob image to use correct naming convention - Populate EnslavedSoul mr namespace page with actual code references - Fix tag format in Portuguese food item page mike | mr:enslaved_soul_mob [2026/02/14 05:17] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== EnslavedSoul - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Full Java Class Content ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mobs.necropolis; | ||
| + | |||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Blindness; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Buff; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Charm; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.FlavourBuff; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Roots; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Slow; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Vertigo; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Weakness; | ||
| + | import com.watabou.pixeldungeon.actors.hero.Hero; | ||
| + | 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 | ||
| + | */ | ||
| + | public class EnslavedSoul extends Mob { | ||
| + | |||
| + | static final Class<?> | ||
| + | Blindness.class, | ||
| + | Charm.class, | ||
| + | Roots.class, | ||
| + | Slow.class, | ||
| + | Vertigo.class, | ||
| + | Weakness.class | ||
| + | }; | ||
| + | |||
| + | public EnslavedSoul(){ | ||
| + | hp(ht(25)); | ||
| + | carcassChance = 0; | ||
| + | baseSpeed = 1.1f; | ||
| + | baseDefenseSkill = 11; | ||
| + | baseAttackSkill | ||
| + | flying = true; | ||
| + | |||
| + | dmgMin = 5; | ||
| + | dmgMax = 8; | ||
| + | dr = 10; | ||
| + | |||
| + | expForKill = 5; | ||
| + | maxLvl = 15; | ||
| + | |||
| + | setUndead(true); | ||
| + | loot(Gold.class, | ||
| + | } | ||
| + | |||
| + | @SuppressWarnings(" | ||
| + | @Override | ||
| + | public int attackProc(@NotNull Char enemy, int damage ) { | ||
| + | //Buff proc | ||
| + | if (Random.Int(5) == 1){ | ||
| + | if(enemy instanceof Hero) { | ||
| + | Class <? extends FlavourBuff> | ||
| + | Buff.prolong( enemy, buffClass, 3 ); | ||
| + | } | ||
| + | } | ||
| + | |||
| + | return damage; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
