mr:bellanpc_mob
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mr:bellanpc_mob [2026/01/28 22:06] – Fix wiki pages to comply with documentation standards mike | mr:bellanpc_mob [2026/03/09 03:01] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== bellanpc_mob - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Class Implementation ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.mobs.npc; | ||
| + | |||
| + | import com.nyrds.pixeldungeon.ml.R; | ||
| + | import com.nyrds.platform.util.StringsManager; | ||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.scenes.GameScene; | ||
| + | import com.watabou.pixeldungeon.windows.WndQuest; | ||
| + | |||
| + | public class BellaNPC extends ImmortalNPC { | ||
| + | |||
| + | public BellaNPC() { | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean interact(final Char hero) { | ||
| + | getSprite().turnTo( getPos(), hero.getPos() ); | ||
| + | |||
| + | GameScene.show(new WndQuest(this, | ||
| + | return true; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Entity Kind ===== | ||
| + | * **Entity Kind:** BellaNPC (returned by getEntityKind() method) | ||
| + | * **Base Class:** ImmortalNPC | ||
| + | * **Mob Type:** NPC (Non-player character) | ||
| + | |||
| + | ===== Behavior ===== | ||
| + | * **Interaction: | ||
| + | * **Gender:** Feminine (affects dialogue variations with amulet) | ||
| + | * **Quest Role:** Part of the end-game content involving the amulet of yendor | ||
| + | * **Personality: | ||
| + | |||
| + | ===== Registration ===== | ||
| + | * Registered in MobFactory.java at line 246: `registerMobClass(BellaNPC.class); | ||
| + | * Available for spawning through the mob factory system | ||
| + | |||
| + | ===== Related NPCs ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
