mr:spider_egg_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:spider_egg_mob [2026/03/14 22:23] – Wiki standards compliance fixes for 5 random pages Qwen Assistant | mr:spider_egg_mob [2026/03/14 22:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Spider Egg Mob - Code References ====== | ||
| + | {{ rpd: | ||
| + | |||
| + | Machine-readable reference page for the Spider Egg mob entity in Remixed Dungeon. | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no JSON configuration exists | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | This entity does not have specific string resources in the main files (non-speaking mob) | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Implementation Details ===== | ||
| + | * **Package**: | ||
| + | * **Extends**: | ||
| + | * **Location**: | ||
| + | * **Behavior**: | ||
| + | |||
| + | ===== Code Fragment ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mobs.spiders; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.items.Treasury; | ||
| + | import com.nyrds.pixeldungeon.mobs.common.MobSpawner; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.actors.mobs.Mob; | ||
| + | |||
| + | public class SpiderEgg extends Mob { | ||
| + | |||
| + | public SpiderEgg() { | ||
| + | hp(ht(2)); | ||
| + | baseDefenseSkill = 1; | ||
| + | baseAttackSkill = 1; | ||
| + | baseSpeed = 0f; | ||
| + | |||
| + | expForKill = 0; | ||
| + | maxLvl = 9; | ||
| + | |||
| + | postpone(20); | ||
| + | |||
| + | loot(Treasury.Category.SEED, | ||
| + | |||
| + | movable = false; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean act() { | ||
| + | super.act(); | ||
| + | |||
| + | Char newSpider = MobSpawner.spawnRandomMob(level(), | ||
| + | |||
| + | if(newSpider.valid()) { | ||
| + | remove(); | ||
| + | return true; | ||
| + | } | ||
| + | |||
| + | postpone(20); | ||
| + | |||
| + | return true; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean canBePet() { | ||
| + | return false; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Stats (from Code) ===== | ||
| + | * **HP**: 2 (fixed via ht(2)) | ||
| + | * **Base Defense Skill**: 1 | ||
| + | * **Base Attack Skill**: 1 | ||
| + | * **Base Speed**: 0 (stationary) | ||
| + | * **Exp for Kill**: 0 (no experience granted) | ||
| + | * **Max Level**: 9 | ||
| + | * **Movable**: | ||
| + | * **Can Be Pet**: false (cannot be tamed) | ||
| + | * **Loot**: 20% chance to drop seeds (Treasury.Category.SEED) | ||
| + | * **Act Delay**: 20 ticks between spawn attempts | ||
| + | |||
| + | ===== Behavior ===== | ||
| + | * **Stationary**: | ||
| + | * **Spawning**: | ||
| + | * **Spawn Rate**: 25% chance to spawn a spider on each attempt | ||
| + | * **Self-Destruct**: | ||
| + | * **Location**: | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/spider_egg_mob.txt · Last modified: by 127.0.0.1
