mr:treacherous_spirit_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mr:treacherous_spirit_mob [2026/02/13 04:01] – Update wiki pages to improve compliance with standards - Improve formatting and structure of Russian layers page - Fix broken links to existing lowercase pages - Enhance mr namespace page with complete code references - Update image references and ensure mike | mr:treacherous_spirit_mob [2026/02/13 04:05] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Treacherous Spirit - Code References ====== | ||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Java Class Content ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mobs.guts; | ||
| + | |||
| + | |||
| + | import com.nyrds.pixeldungeon.ai.MobAi; | ||
| + | import com.nyrds.pixeldungeon.ai.Wandering; | ||
| + | import com.nyrds.pixeldungeon.items.guts.HeartOfDarkness; | ||
| + | import com.watabou.pixeldungeon.Dungeon; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.mobs.Mob; | ||
| + | import com.watabou.utils.Random; | ||
| + | |||
| + | import org.jetbrains.annotations.NotNull; | ||
| + | |||
| + | /** | ||
| + | * Created by DeadDie on 12.02.2016 | ||
| + | */ | ||
| + | public class TreacherousSpirit extends Mob { | ||
| + | { | ||
| + | hp(ht(200)); | ||
| + | baseDefenseSkill = 35; | ||
| + | baseAttackSkill | ||
| + | dmgMin = 30; | ||
| + | dmgMax = 45; | ||
| + | dr = 25; | ||
| + | |||
| + | expForKill = 45; | ||
| + | maxLvl = 30; | ||
| + | |||
| + | setState(MobAi.getStateByClass(Wandering.class)); | ||
| + | collect( new HeartOfDarkness()); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public int attackProc(@NotNull Char enemy, int damage ) { | ||
| + | //Summon proc | ||
| + | if (Random.Int(4) == 1){ | ||
| + | int spiritPos = Dungeon.level.getEmptyCellNextTo(getPos()); | ||
| + | |||
| + | if (Dungeon.level.cellValid(spiritPos)) { | ||
| + | SpiritOfPain spirit = new SpiritOfPain(); | ||
| + | spirit.setPos(spiritPos); | ||
| + | Dungeon.level.spawnMob(spirit, | ||
| + | } | ||
| + | } | ||
| + | return damage; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean canBePet(){ | ||
| + | return false; | ||
| + | } | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Related String Resources ===== | ||
| + | * TreacherousSpirit_Desc | ||
| + | * TreacherousSpirit_Name | ||
| + | * TreacherousSpirit_Name_Objective | ||
| + | * TreacherousSpirit_Gender | ||
| + | |||
| + | ===== Other Java Usage ===== | ||
| + | Found usage in: | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
