en:rpd:bella_npc
Table of Contents
BellaNPC
Description
Bella is a very posh looking girl. Her whole appearance tells you “I am to good for everyone.” She is encountered at the end of the game and serves as one of the possible endings.
Interactions
- When encountering Bella, she will tell you she bears no interest in such plebs as yourself
- Note: The current implementation does not include special interaction logic for when the player has the Amulet of Yendor, despite string resources indicating this interaction was intended. When the player has the Amulet of Yonder, Bella should theoretically offer the option of taking a walk together and discussing their mutual future, but this functionality is not currently implemented in the code.
Implementation Details
- BellaNPC extends ImmortalNPC class, which prevents her from being killed
- Interaction is handled by the
interactmethod in the BellaNPC.java class - The basic message is retrieved from string resources:
BellaNPC_Message - Additional messages related to the Amulet of Yendor exist in string resources but are not implemented in code:
BellaNPC_Amulet_M- Message for male hero with AmuletBellaNPC_Amulet_F- Message for female hero with AmuletBellaNPC_Yes_End_Game- Positive response option to end the gameBellaNPC_No- Negative response optionBellaNPC_Angry- Angry response message
Code References
- BellaNPC implementation: BellaNPC.java
- Base class (ImmortalNPC): ImmortalNPC.java
- Interaction handler: interact method
- String resources: All BellaNPC strings
- Mob factory registration: BellaNPC registration
en/rpd/bella_npc.txt · Last modified: by 127.0.0.1
