mr:bishop_npc
Table of Contents
Bishop NPC - Code References
Java Classes
This entity is implemented in Lua/JSON, no Java class exists. See:
- RemixedDungeon/src/main/assets/mobsDesc/BishopNPC.json
- RemixedDungeon/src/main/assets/scripts/npc/Bishop.lua
JSON Configuration
- BishopNPC.json - NPC configuration
- `baseSpeed: 0` - Cannot move
- `spriteDesc: spritesDesc/BishopNPC.json` - Sprite configuration
- `scriptFile: scripts/npc/Bishop` - Lua script reference
- `friendly: true` - Friendly to player
- `movable: false` - Cannot be moved
- `aiState: Passive` - Passive AI state
- `fraction: NEUTRAL` - Neutral faction
- `immortal: true` - Cannot be killed
- Church.json - Level placement
- Church_2021_03.json - Alternative level placement
- BishopNPC.json - Sprite configuration (spritesDesc)
String Resources
<string name="Bishop_title">Bishop</string> <string name="Bishop_text">Greetings, traveler! Would you like to receive a blessing? I can offer lesser or greater blessings, or remove curses from your items. Just keep in mind that the greater the blessing, the higher the cost.</string> <string name="Bishop_lesser_bless">Lesser Blessing: A small boost of divine power, but at a modest price.</string> <string name="Bishop_great_bless">Greater Blessing: A substantial enhancement of your equipment, but quite costly.</string> <string name="Bishop_remove_curse">Remove Curse: Free your items from malevolent enchantments.</string> <string name="Bishop_not_interested">Not interested? That's fine. May the divine light watch over you.</string> <string name="Bishop_no_money">You don't have enough gold for that service!</string> <string name="Bishop_bye">Farewell, my friend.</string>
Lua Scripts
- Bishop.lua - NPC behavior script
- Key functions:
- `interact(self, chr)` - Handles player interaction
- `die(self, cause)` - Death handler (curses player when killed)
- `spawn(me, level)` - Spawn handler (sets AI to “NpcDefault”)
- Services offered:
- Lesser Blessing: 100 * difficultyFactor gold, applies Blessed buff for 100 turns
- Greater Blessing: 500 * difficultyFactor gold, applies Blessed buff for 500 turns (twice)
- Remove Curse: 200 * difficultyFactor gold, removes curses from all items
Related String Resources
- BishopNPC_Name
- BishopNPC_Name_Objective
- BishopNPC_Gender
- BishopNPC_Desc
mr/bishop_npc.txt · Last modified: by 127.0.0.1
