====== Mercenary N P C Mob - Code References ====== ===== Entity Information ===== * **Entity Kind**: MercenaryNPC * **Entity Type**: npc * **Implementation**: Custom NPC via JSON configuration and Lua script ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/actors/mobs/common/CustomMob.java|CustomMob.java]] - Base class for JSON-defined NPCs ===== JSON Configuration ===== { "baseSpeed" :0, "spriteDesc" :"spritesDesc/MercenaryNPC.json", "scriptFile" :"scripts/npc/Mercenary", "friendly" :true, "movable" :false, "aiState" :"Passive", "fraction" :"NEUTRAL", "immortal" :true } ===== String Resources ===== mercenary mercenary masculine Sturdy looking man. ===== Lua Scripts ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/npc/Mercenary.lua|Mercenary.lua]] ===== Implementation Details ===== * **Base Speed**: 0 (immobile) * **AI State**: Passive * **Fraction**: NEUTRAL * **Immortal**: true (cannot be killed) * **Movable**: false (fixed position) * **Friendly**: true (neutral to player) * **Script**: Interacts by saying 'Froth_ArrowInKnee' (Elder Scrolls reference) ===== Related mr Entities ===== * [[mr:town_level|Town Level]] - Where MercenaryNPC is located