User Tools

Site Tools


mr:bellanpc_mob

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
mr:bellanpc_mob [2026/03/09 03:00] – Wiki standards: Fix language consistency and enhance mr: namespace documentation Qwen Assistantmr: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://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/BellaNPC.java|BellaNPC.java]] - Main NPC class that extends ImmortalNPC
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/MobFactory.java|MobFactory.java]] - Registers BellaNPC class for mob spawning
 +
 +===== 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, StringsManager.getVar(R.string.BellaNPC_Message)));
 + return true;
 + }
 +}
 +</code>
 +
 +===== JSON Configuration =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/BellaNPC.json|BellaNPC.json]] - Sprite configuration
 +
 +===== String Resources =====
 +<code xml>
 +<string name="BellaNPC_Name">Bella</string>
 +<string name="BellaNPC_Desc">A very posh looking girl. Her whole appearance tells you "I am to good for everyone."</string>
 +<string name="BellaNPC_Message">I bear no interest in such plebs as yourself!</string>
 +<string name="BellaNPC_Amulet_M">Why hello there handsome, what do you have over there. Ah, such an exquisite amulet! And you... you stand above those plebs. What if we take a walk and discuss our mutual future?</string>
 +<string name="BellaNPC_Amulet_F">Why hello there cutie pie, why do you have over there. Ah, such an exquisite amulet! And you... you shine so much brighter compared to anyone. What if we take a walk and discuss our mutual future?</string>
 +<string name="BellaNPC_Angry">How dare you... you pleb!</string>
 +<string name="BellaNPC_Yes_End_Game">Sure (End game)</string>
 +<string name="BellaNPC_No">No, not with you</string>
 +<string name="BellaNPC_Gender">feminine</string>
 +<string name="BellaNPC_Name_Objective">Bella</string>
 +</code>
 +
 +===== 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:** When player interacts, Bella turns to face the hero and displays a quest window with her standard message
 +  * **Gender:** Feminine (affects dialogue variations with amulet)
 +  * **Quest Role:** Part of the end-game content involving the amulet of yendor
 +  * **Personality:** Posh, condescending attitude toward the player ("plebs")
 +
 +===== Registration =====
 +  * Registered in MobFactory.java at line 246: `registerMobClass(BellaNPC.class);`
 +  * Available for spawning through the mob factory system
 +
 +===== Related NPCs =====
 +  * [[mr:immortal_npc|ImmortalNPC]] - Base class
 +  * [[mr:npc|NPC]] - General NPC information
 +  * [[mr:townsfolk_npc_mob|TownsfolkNPC]] - Similar town NPC type
  
mr/bellanpc_mob.txt · Last modified: by 127.0.0.1