mr:bellanpc_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:bellanpc_mob [2026/10/14 10:48] – Wiki maintenance: fix bellanpc_mob (data migration, broken link, deleted Java ref); add vi translation of ring_of_elements_item; lint verified Wiki Maintenance | mr:bellanpc_mob [2026/10/14 10:52] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== bellanpc_mob - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * **Note:** The original `BellaNPC.java` class has been deleted as the entity migrated to JSON+Lua data files. See data references below. | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Class Implementation ===== | ||
| + | **Note:** The original Java class `BellaNPC.java` has been deleted (migrated to data-based definition). Historical code reference preserved below for context. | ||
| + | <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 ===== | ||
| + | No dedicated Lua behavior script exists; behavior is handled via the base ImmortalNPC class and data configuration. | ||
| + | |||
| + | ===== 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 ===== | ||
| + | * **Data Migration Note:** The original `registerMobClass(BellaNPC.class)` in MobFactory.java is obsolete; entity is now defined via data files (spritesDesc/ | ||
| + | * Available for spawning through the mob factory system | ||
| + | |||
| + | ===== Related NPCs ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/bellanpc_mob.txt · Last modified: by 127.0.0.1
