====== 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 ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/BishopNPC.json|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 * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Church.json|Church.json]] - Level placement * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Church_2021_03.json|Church_2021_03.json]] - Alternative level placement * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/BishopNPC.json|BishopNPC.json]] - Sprite configuration (spritesDesc) ===== String Resources ===== Bishop 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. Lesser Blessing: A small boost of divine power, but at a modest price. Greater Blessing: A substantial enhancement of your equipment, but quite costly. Remove Curse: Free your items from malevolent enchantments. Not interested? That's fine. May the divine light watch over you. You don't have enough gold for that service! Farewell, my friend. ===== Lua Scripts ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/npc/Bishop.lua|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