User Tools

Site Tools


mr:bishop_npc

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
mr:bishop_npc [2026/02/23 22:54] – Fix wiki standards compliance for 5 analyzed pages Qwen Assistantmr:bishop_npc [2026/02/23 22:58] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 =====
 +<code xml>
 +<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>
 +</code>
 +
 +===== 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