User Tools

Site Tools


mr:exploding_skull_mob

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
mr:exploding_skull_mob [2026/02/14 05:14] – Fix wiki pages based on documentation standards and code verification Remixed Dungeon Wiki Maintainermr:exploding_skull_mob [2026/02/14 05:17] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Exploding Skull Mob - Code References ======
 +
 +{{ rpd:images:exploding_skull_mob.png|Exploding Skull }}
 +
 +===== Java Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/necropolis/ExplodingSkull.java|ExplodingSkull.java]]
 +
 +===== Full Java Class Content =====
 +<code java>
 +package com.nyrds.pixeldungeon.mobs.necropolis;
 +
 +import com.watabou.pixeldungeon.actors.Char;
 +import com.watabou.pixeldungeon.actors.mobs.Mob;
 +import com.watabou.pixeldungeon.items.Gold;
 +
 +import org.jetbrains.annotations.NotNull;
 +
 +/**
 + * Created by DeadDie on 12.02.2016
 + */
 +public class ExplodingSkull extends Mob {
 +    {
 +        carcassChance = 0;
 +        hp(ht(10));
 +        baseDefenseSkill = 1;
 +        baseAttackSkill  = 125;
 +
 +        dmgMin = 25;
 +        dmgMax = 45;
 +        dr = 1;
 +
 +        baseSpeed = 1.5f;
 +
 +        expForKill = 1;
 +        maxLvl = 1;
 +
 +        setUndead(true);
 +        loot(Gold.class, 0.02f);
 +    }
 +
 +    @Override
 +    public boolean attack(@NotNull Char enemy) {
 +        if(super.attack(enemy)) {
 +            die(this);
 +            return true;
 +        }
 +        return false;
 +    }
 +}
 +</code>
 +
 +===== JSON Configuration =====
 +This entity may have JSON configuration, but no matching config was found. Check:
 +  * RemixedDungeon/src/main/assets/mobsDesc/*.json
 +  * RemixedDungeon/src/main/assets/spritesDesc/exploding_skull.json
 +
 +===== String Resources =====
 +<code xml>
 +<string name="ExplodingSkull_Name">exploding skull</string>
 +<string name="ExplodingSkull_Gender">neuter</string>
 +<string name="ExplodingSkull_Name_Objective">exploding skull</string>
 +<string name="ExplodingSkull_Desc">This Undead enemy is a flying skull that explodes on contact with the hero, dealing heavy damage. It moves very quickly.</string>
 +</code>
 +
 +===== Lua Scripts =====
 +This entity is implemented in Java, no Lua script exists
 +
 +===== Related mr Entities =====
 +  * [[mr:undead_mob|Undead (Mob)]]
 +  * [[mr:necropolis_level|Necropolis (Level)]]
  
mr/exploding_skull_mob.txt · Last modified: by 127.0.0.1