mr:yogs_eye_mob
Table of Contents
YogsEye - Code References
Entity Kind
YogsEye
JSON Configuration
File: `RemixedDungeon/src/main/assets/mobsDesc/YogsEye.json`
{
"name" : "YogsEye_Name",
"name_objective": "YogsEye_Name_Objective",
"description" : "YogsEye_Desc",
"gender" : "YogsEye_Gender",
"attackSkill" : 30,
"defenseSkill" : 30,
"dmgMin" : 20,
"dmgMax" : 30,
"str" : 18,
"ht" : 1000,
"exp" : 50,
"maxLvl" : 50,
"baseSpeed" : 1,
"attackDelay" : 1,
"spriteDesc" : "spritesDesc/YogsEye.json",
"scriptFile" : "scripts/mobs/YogsEye",
"aiState" : "Sleeping",
"movable" : false,
"isBoss" : true,
"resistances" : ["Death", "ScrollOfPsionicBlast"],
"immunities" : ["Death", "Terror", "Amok", "Charm", "Sleep", "Burning", "ToxicGas", "ScrollOfPsionicBlast"],
"canBePet" : false,
"friendly" : false,
"fraction" : "DUNGEON",
"battleMusic" : "ost_boss_6_fight",
"battleMusicFallback": "ost_boss_fight"
}
Lua Script
File: `RemixedDungeon/src/main/assets/scripts/mobs/YogsEye.lua` Key behaviors implemented in Lua:
- canAttack: Uses Ballistica to cast gaze ray from one row above eye position
- zapProc: Beams strike through all characters in line (Eye_Kill effect)
- damage: Calls other Yog organs to position; damage reduced by 2^shift where shift = number of living organs
- die: Validates YOG_SLAIN badge; yells Yog_Info1
- notice: Yells Yog_Info2
- spawn: Spawns 2-3 other Yog organs (RottingFist, BurningFist, YogsBrain, YogsHeart, YogsTeeth) on battle start
- Spawns Larva when damaged (10 * difficulty factor)
String Resource References
- YogsEye_Name: “yog's eye�
- YogsEye_Gender: “masculine�
- YogsEye_Name_Objective: “Yog's eye�
- YogsEye_Desc: “The eye of the Old God, all-seeing gaze filled with eternal hatred. You can feel it watching right through your soul�
Code Implementation
This mob is implemented via JSON configuration + Lua script (migrated from Java class `com/nyrds/pixeldungeon/mobs/guts/YogsEye.java`).
Key properties from JSON:
- HP: 1000 (ht)
- Attack Skill: 30
- Defense Skill: 30
- Damage: 20-30
- STR: 18
- EXP: 50
- Max Level: 50
- Immobile: movable = false
- Boss: isBoss = true
- Immunities: Death, Terror, Amok, Charm, Sleep, Burning, Toxic Gas, Psionic Blast
- Resistances: Death, Psionic Blast
Special abilities from Lua:
- Death Ray / Gaze: Attacks along a straight line (Ballistica cast from cell above)
- Organ Coordination: When damaged, calls all living Yog organs (RottingFist, BurningFist, YogsBrain, YogsHeart, YogsTeeth) to its position
- Organ Protection: Incoming damage is halved per living organ (damage »= shift)
- Larva Spawn: Spawns Larva when taking damage (count based on difficulty)
- Secondary Organ Spawning: At battle start, spawns 2-3 distinct other Yog organs (3 on difficulty > 2, else 2)
- Boss Death Flow: Awards YOG_SLAIN badge on death
Behavior
- Remains stationary throughout the battle (movable = false)
- Cannot be beckoned (no beckon override in Lua, but JSON movable=false prevents movement)
- Automatically spawns 2-3 secondary boss organs at battle start
- Uses death ray attack that affects all characters in a straight line
- Damage reduction scales with number of surviving sibling organs
- On death, awards badge for Yog-Dzewa being slain
Related mr Entities
mr/yogs_eye_mob.txt · Last modified: by 127.0.0.1
