mr:zombie_gnoll_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mr:zombie_gnoll_mob [2025/12/25 18:23] – auto lint fix Mikhael | mr:zombie_gnoll_mob [2026/07/10 04:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Zombie Gnoll Mob - Code References ====== | ||
| + | {{ rpd: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Class Details ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mobs.guts; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.mechanics.NamedEntityKind; | ||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.nyrds.platform.audio.Sample; | ||
| + | import com.nyrds.platform.util.StringsManager; | ||
| + | import com.watabou.pixeldungeon.Assets; | ||
| + | import com.watabou.pixeldungeon.actors.CharUtils; | ||
| + | import com.watabou.pixeldungeon.actors.blobs.ToxicGas; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Burning; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Paralysis; | ||
| + | import com.watabou.pixeldungeon.actors.mobs.Mob; | ||
| + | import com.watabou.pixeldungeon.effects.CellEmitter; | ||
| + | import com.watabou.pixeldungeon.effects.Speck; | ||
| + | import com.watabou.pixeldungeon.items.Gold; | ||
| + | import com.watabou.pixeldungeon.sprites.CharSprite; | ||
| + | import com.watabou.pixeldungeon.utils.GLog; | ||
| + | import com.watabou.utils.Random; | ||
| + | |||
| + | import org.jetbrains.annotations.NotNull; | ||
| + | |||
| + | /** | ||
| + | * Created by DeadDie on 12.02.2016 | ||
| + | */ | ||
| + | |||
| + | public class ZombieGnoll extends Mob { | ||
| + | { | ||
| + | hp(ht(210)); | ||
| + | baseDefenseSkill = 27; | ||
| + | baseAttackSkill | ||
| + | dmgMin = 15; | ||
| + | dmgMax = 35; | ||
| + | dr = 20; | ||
| + | |||
| + | expForKill = 7; | ||
| + | maxLvl = 35; | ||
| + | |||
| + | loot(Gold.class, | ||
| + | |||
| + | addImmunity(Paralysis.class); | ||
| + | addImmunity(ToxicGas.class); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public void die(@NotNull NamedEntityKind cause) { | ||
| + | super.die(cause); | ||
| + | |||
| + | if (Random.Int(100) > 65 && !cause.getEntityKind().equals(Burning.class.getSimpleName())){ | ||
| + | resurrect(); | ||
| + | |||
| + | CellEmitter.center(this.getPos()).start(Speck.factory(Speck.BONE), | ||
| + | Sample.INSTANCE.play(Assets.SND_DEATH); | ||
| + | if (CharUtils.isVisible(this)) { | ||
| + | getSprite().showStatus( CharSprite.NEGATIVE, | ||
| + | GLog.n(StringsManager.getVar(R.string.ZombieGnoll_Info)); | ||
| + | } | ||
| + | |||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Key Methods ===== | ||
| + | * **die(NamedEntityKind cause)**: Overrides death behavior. Has 35% chance to resurrect unless killed by burning damage. | ||
| + | |||
| + | ===== Constants ===== | ||
| + | * **HP/HT**: 210 | ||
| + | * **Defense Skill**: 27 | ||
| + | * **Attack Skill**: 25 | ||
| + | * **Damage**: 15-35 | ||
| + | * **Armor (DR)**: 20 | ||
| + | * **EXP**: 7 | ||
| + | * **Max Level**: 35 | ||
| + | * **Resurrection Chance**: 35% (unless killed by burning) | ||
| + | |||
| + | ===== Immunities ===== | ||
| + | * Paralysis | ||
| + | * Toxic Gas | ||
| + | |||
| + | ===== Drops ===== | ||
| + | * Gold (2% chance) | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== String Resource References ===== | ||
| + | * ZombieGnoll_Name | ||
| + | * ZombieGnoll_Desc | ||
| + | * ZombieGnoll_Info | ||
| + | * ZombieGnoll_Gender | ||
| + | * ZombieGnoll_Name_Objective | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Source Code Links ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | {{tag> rpd mobs guts mr }} | ||
