====== Yogs Brain Mob - Code References ======
{{ rpd:images:yogs_brain_mob.png|Yogs Brain }}
===== Entity Kind =====
* **Entity Kind:** YogsBrain
* **Type:** Mob (boss organ)
* **Namespace:** mr: (machine-readable reference)
===== Java Classes =====
* **Main Class:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/MobFactory.java|MobFactory.java]] (registration)
* **Note:** Java class deleted (batch 17d-2), entity migrated to JSON + Lua
===== JSON Configuration =====
* **Config File:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/YogsBrain.json|YogsBrain.json]]
* **HP:** 350
* **Attack Skill:** 31
* **Defense Skill:** 30
* **Damage:** 15-25
* **DR:** 12
* **Strength:** 18
* **EXP:** 25
* **Max Level:** 50
* **Base Speed:** 1
* **Attack Range:** 8
* **View Distance:** 8
* **Resistances:** Electricity, ToxicGas
* **Immunities:** Paralysis, Amok, Sleep, Terror, Burning
* **Can Be Pet:** false
* **Sprite Config:** spritesDesc/YogsBrain.json
* **Script File:** scripts/mobs/YogsBrain
===== Lua Scripts =====
* **Main Script:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/mobs/YogsBrain.lua|YogsBrain.lua]]
* **Behavior:** Ranged-only kiter shooting lightning bolts. On damage, beckons all mobs to its position and spawns Nightmares (10 * difficulty factor). AI switches between HUNTING and FLEEING states based on ranged attack line of sight.
===== String Resources =====
English (values/strings_all.xml):
yog's brain
masculine
Yog's brain
Brain of Yog-Dzewa. Source of all evil ever to come out of the dungeon.
Russian (values-ru/strings_all.xml):
мозг йога
masculine
мозга йога
Мозг Йог-Джевы. Источник всех зол, когда-либо выходивших из подземелья.
===== Related Entities =====
* [[mr:yog_mob|Yog-Dzewa (Mob)]]
* [[mr:yogs_heart_mob|Yog's Heart (Mob)]]
* [[mr:yogs_teeth_mob|Yog's Teeth (Mob)]]
* [[mr:rotting_fist_mob|Rotting Fist (Mob)]]
* [[mr:burning_fist_mob|Burning Fist (Mob)]]
* [[mr:nightmare_mob|Nightmare (Mob)]]
===== Code References Summary =====
* **JSON Config:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/YogsBrain.json|YogsBrain.json]]
* **Lua Script:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/mobs/YogsBrain.lua|YogsBrain.lua]]
* **String Resources:** Multiple language files (values/, values-ru/, etc.)
* **Registration:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/MobFactory.java|MobFactory.java]]
* **Bestiary:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Bestiary.json|Bestiary.json]]
{{tag> mr mobs yogs_brain guts boss}}