mr:exploding_skull_mob
Differences
This shows you the differences between two versions of the page.
| 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 Maintainer | mr: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: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== 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 | ||
| + | |||
| + | dmgMin = 25; | ||
| + | dmgMax = 45; | ||
| + | dr = 1; | ||
| + | |||
| + | baseSpeed = 1.5f; | ||
| + | |||
| + | expForKill = 1; | ||
| + | maxLvl = 1; | ||
| + | |||
| + | setUndead(true); | ||
| + | loot(Gold.class, | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean attack(@NotNull Char enemy) { | ||
| + | if(super.attack(enemy)) { | ||
| + | die(this); | ||
| + | return true; | ||
| + | } | ||
| + | return false; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity may have JSON configuration, | ||
| + | * RemixedDungeon/ | ||
| + | * RemixedDungeon/ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/exploding_skull_mob.txt · Last modified: by 127.0.0.1
