mr:cold_spirit_mob
Table of Contents
Cold Spirit Mob - Code References
Java Classes
- ColdSpirit.java — Main implementation
- Location: `com/nyrds/pixeldungeon/mobs/icecaves/ColdSpirit.java`
- Extends: `com.watabou.pixeldungeon.actors.mobs.Mob`
- Registered in: MobFactory.java (`registerMobClass(ColdSpirit.class);`)
public class ColdSpirit extends Mob { public ColdSpirit(){ hp(ht(50)); baseSpeed = 1.3f; baseDefenseSkill = 16; baseAttackSkill = 22; flying = true; expForKill = 8; maxLvl = 20; dmgMin = 12; dmgMax = 15; dr = 22; loot(Gold.class, 0.02f); } @Override public int attackProc(@NotNull Char enemy, int damage ) { if (Random.Int( 4 ) == 1) { Freezing.affect( enemy.getPos()); } return damage; } }
Stats from Code
- HP: 50
- Base Speed: 1.3
- Base Defense Skill: 16
- Base Attack Skill: 22
- Flying: true (can pass over terrain that non-flying mobs cannot)
- EXP for Kill: 8
- Max Level: 20
- Damage Min: 12
- Damage Max: 15
- Defense Rating (DR): 22
- Loot: 2% chance to drop Gold (loot class `com.watabou.pixeldungeon.items.Gold`)
Abilities
- Freezing Attack: 25% chance on attack (1-in-4) to apply the `Freezing` blob at the enemy's position via `Freezing.affect(enemy.getPos())`
JSON Configuration
This entity is implemented in Java, no JSON configuration found.
Sprite
- SpriteDesc: spritesDesc/ColdSpirit.json
- Texture: `mobs/cold_spirit.png` (16×16)
- Frames: idle [0,1,2], run [0,1,2], attack [3,2,1], die [4,5,6,7,8,9]
- `bloodColor: 0xFFDDDDFF` (light frost-tinted blood)
String Resources
<string name="ColdSpirit_Name">cold spirit</string> <string name="ColdSpirit_Name_Objective">cold spirit</string> <string name="ColdSpirit_Gender">masculine</string> <string name="ColdSpirit_Desc">The cold spirit is the embodiment of frost, in it\'s purest form. Being a mindless clot of magical energy, he obeys the will of the mage who called him or instead acts accordingly to basic instincts.</string>
- English: `RemixedDungeon/src/main/res/values/strings_all.xml`
- Other translations live in the corresponding `values-<locale>/strings_all.xml` files
Lua Scripts
This entity is implemented in Java, no Lua script exists.
Related Classes
- `com.watabou.pixeldungeon.actors.blobs.Freezing` — Freezing blob applied on attack
- `com.watabou.pixeldungeon.items.Gold` — Potential loot drop
- `com.watabou.pixeldungeon.actors.mobs.Mob` — Parent class
mr/cold_spirit_mob.txt · Last modified: by 127.0.0.1
