mr:yogs_teeth_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:yogs_teeth_mob [2026/03/28 07:08] – Fix wiki standards compliance issues in 5 random pages Qwen Assistant | mr:yogs_teeth_mob [2026/03/28 07:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Yogs Teeth Mob - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | Machine-readable reference page for the Yogs Teeth mob entity in Remixed Dungeon. | ||
| + | |||
| + | ==== Java Classes ==== | ||
| + | * [[https:// | ||
| + | |||
| + | ==== JSON Configuration ==== | ||
| + | * [[https:// | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | English (values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Russian (values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ==== Lua Scripts ==== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ==== Implementation Details ==== | ||
| + | * **Package**: | ||
| + | * **Extends**: | ||
| + | * **Location**: | ||
| + | * **Behavior**: | ||
| + | |||
| + | ==== Code Fragment ==== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mobs.guts; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.effects.Devour; | ||
| + | import com.nyrds.pixeldungeon.mechanics.NamedEntityKind; | ||
| + | import com.nyrds.platform.audio.Sample; | ||
| + | import com.watabou.pixeldungeon.Assets; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.blobs.ToxicGas; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Amok; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Bleeding; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Buff; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Burning; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Paralysis; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Sleep; | ||
| + | import com.watabou.pixeldungeon.actors.buffs.Terror; | ||
| + | import com.watabou.pixeldungeon.actors.mobs.Mob; | ||
| + | import com.watabou.utils.Random; | ||
| + | |||
| + | import org.jetbrains.annotations.NotNull; | ||
| + | |||
| + | public class YogsTeeth extends Mob { | ||
| + | { | ||
| + | hp(ht(350)); | ||
| + | baseDefenseSkill = 44; | ||
| + | baseAttackSkill | ||
| + | dmgMin = 50; | ||
| + | dmgMax = 80; | ||
| + | dr = 21; | ||
| + | |||
| + | expForKill = 26; | ||
| + | |||
| + | addResistance(ToxicGas.class); | ||
| + | |||
| + | addImmunity(Paralysis.class); | ||
| + | addImmunity(Amok.class); | ||
| + | addImmunity(Sleep.class); | ||
| + | addImmunity(Terror.class); | ||
| + | addImmunity(Burning.class); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public void damage(int dmg, @NotNull NamedEntityKind src) { | ||
| + | for (Mob mob : level().mobs) { | ||
| + | mob.beckon(getPos()); | ||
| + | } | ||
| + | |||
| + | super.damage(dmg, | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public int attackProc(@NotNull Char enemy, int damage ) { | ||
| + | //Life drain proc | ||
| + | if (Random.Int(3) == 1){ | ||
| + | heal(damage, | ||
| + | } | ||
| + | |||
| + | //Bleeding proc | ||
| + | if (Random.Int(3) == 1){ | ||
| + | Buff.affect(enemy, | ||
| + | } | ||
| + | |||
| + | //Double damage proc | ||
| + | if (Random.Int(3) == 1){ | ||
| + | Devour.hit(enemy); | ||
| + | Sample.INSTANCE.play(Assets.SND_BITE); | ||
| + | return damage*2; | ||
| + | } | ||
| + | return damage; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean canBePet() { | ||
| + | return false; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Stats (from Code) ==== | ||
| + | * **HP**: 350 | ||
| + | * **Base Defense Skill**: 44 | ||
| + | * **Base Attack Skill**: 46 | ||
| + | * **Damage**: 50-80 | ||
| + | * **Defense Rating**: 21 | ||
| + | * **Exp for Kill**: 26 | ||
| + | * **Can Be Pet**: false (cannot be tamed) | ||
| + | |||
| + | ==== Resistances and Immunities ==== | ||
| + | * **Toxic Gas**: Resistant | ||
| + | * **Paralysis**: | ||
| + | * **Amok**: Immune | ||
| + | * **Sleep**: Immune | ||
| + | * **Terror**: Immune | ||
| + | * **Burning**: | ||
| + | |||
| + | ==== Special Abilities ==== | ||
| + | * **Beckon on Damage**: When damaged, all nearby mobs are beckoned to the player' | ||
| + | * **Life Drain**: 33% chance to heal for damage dealt | ||
| + | * **Bleeding**: | ||
| + | * **Double Damage**: 33% chance to deal double damage with special effect | ||
| + | |||
| + | ==== Sprite Configuration (from JSON) ==== | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Related mr Entities ==== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/yogs_teeth_mob.txt · Last modified: by 127.0.0.1
