====== Fire Elemental Mob - Code References ====== {{ rpd:images:fire_elemental_mob.png|Fire Elemental }} ===== Entity Kind ===== * **Entity Kind:** FireElemental * **Type:** Mob (enemy) * **Namespace:** mr: (machine-readable reference) ===== Java Classes ===== * **Main Class:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/FireElemental.java|FireElemental.java]] * **Base Class:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/Mob.java|Mob.java]] * **Parent Hierarchy:** FireElemental → Mob → Char → Actor ===== Java Class Implementation Details ===== * **Constructor:** FireElemental() * **HP:** 65 (ht(65)) * **Base Defense Skill:** 20 * **Base Attack Skill:** 25 * **Experience for Kill:** 10 * **Max Level:** 20 * **Damage Range:** 16-20 (dmgMin = 16, dmgMax = 20) * **Damage Reduction:** 5 (dr = 5) * **Flying:** true (flying = true) * **Carcass Chance:** 0 (no corpse left) * **Loot:** PotionOfLiquidFlame (10% chance) ===== Immunities ===== FireElemental has immunities to the following: * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/enchantments/Fire.java|Fire]] enchantment * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Burning.java|Burning]] buff * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/wands/WandOfFirebolt.java|WandOfFirebolt]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/scrolls/ScrollOfPsionicBlast.java|ScrollOfPsionicBlast]] * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Bleeding.java|Bleeding]] buff ===== Special Abilities ===== * **Attack Proc:** 50% chance to apply [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Burning.java|Burning]] buff to enemy on attack * **Burning Immunity:** When affected by Burning, heals for Random.NormalIntRange(1, ht() * 4) HP instead of taking damage * **Frost Weakness:** When affected by Frost, takes Random.NormalIntRange(1, ht() * 2 / 3) damage ===== JSON Configuration ===== * **Sprite Configuration:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/FireElemental.json|FireElemental.json]] * **Texture:** fire_elemental.png * **Sprite Dimensions:** 12x14 pixels * **Blood Color:** 0xFFFF7D13 (orange-red) * **States:** burning ===== Sprite Animation Frames ===== * **Idle:** Frames [0,1,2] at 10 FPS, looped * **Run:** Frames [0,1,3] at 12 FPS, looped * **Attack:** Frames [4,5,6] at 15 FPS, not looped * **Die:** Frames [7,8,9,10,11,12,13,12] at 15 FPS, not looped ===== String Resources ===== * **English:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L1243-L1246|strings_all.xml#L1243-L1246]] * FireElemental_Name: "fire elemental" * FireElemental_Gender: "masculine" * FireElemental_Name_Objective: "fire elemental" * FireElemental_Desc: "Wandering fire elementals are a byproduct of summoning greater entities..." * **Russian:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ru/strings_all.xml#L771-L774|strings_all.xml#L771-L774]] * FireElemental_Name: "огненный элементаль" * **Spanish, French, German, Chinese, Japanese, and other languages:** Available in respective values-XX/strings_all.xml files ===== Lua Scripts ===== * No specific Lua scripts for this entity (implemented entirely in Java) ===== Related Entities ===== * [[mr:potion_of_liquid_flame_item]] - Loot drop * [[mr:burning_buff]] - Applied on attack, heals FireElemental * [[mr:frost_buff]] - Deals damage to FireElemental * [[mr:fire_enchantment]] - Immune to this enchantment ===== Code References Summary ===== * **Java Implementation:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/FireElemental.java|FireElemental.java]] * **Sprite Configuration:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/FireElemental.json|FireElemental.json]] * **String Resources:** Multiple language files (values/, values-ru/, values-es/, etc.) * **Sprite Texture:** fire_elemental.png (referenced in JSON config) {{tag> mr mobs fire_elemental undead}}