User Tools

Site Tools


rpd:townsfolk_npc

Differences

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

Link to this comparison view

Next revision
Previous revision
rpd:townsfolk_npc [2025/12/22 07:55] – wiki: implement moisten_mechanic page with proper naming convention and code references mikerpd:townsfolk_npc [2025/12/22 07:59] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Townsfolk NPC ======
  
 +{{ rpd:images:townsfolknpc_sprite.png|Townsfolk NPC Sprite }}
 +
 +The Townsfolk NPC is a non-hostile character found in the town area of the dungeon. They serve as background characters that provide flavor text when interacted with.
 +
 +==== Description ====
 +Townsfolk NPCs are peaceful residents of the town area. They are not involved in combat and provide various dialogue messages when spoken to, adding to the atmosphere of the town.
 +
 +==== Characteristics ====
 +  * **Nature:** Non-hostile NPC, Immortal (cannot be killed)
 +  * **Type:** Background character in town area
 +  * **Interaction:** Provides four different random dialogue messages when interacted with
 +  * **Purpose:** Adds atmosphere and flavor to the town area
 +
 +==== Dialogue ====
 +When interacted with, the Townsfolk NPC may say one of the following:
 +  * "Ah! Another adventurer, lovely! Make sure to loot as many valuables as you can!"
 +  * "Town became so wealthy thanks to that dungeon, that everyone in town can afford to go on a vacation whenever we please! In fact that's why there is so few people in here right now."
 +  * "What a lovely day."
 +  * "I hope the sewers won't get flooded when spring arrives. We don't need another rat infestation."
 +
 +==== Location ====
 +  * Found in the town area of the dungeon
 +  * Multiple Townsfolk NPCs may appear at different locations in the town
 +
 +==== Code References ====
 +  * **Java Implementation**:
 +    * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/TownsfolkNPC.java|TownsfolkNPC.java]]
 +    * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/TownsfolkSilentNPC.java|TownsfolkSilentNPC.java]]
 +    * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/TownsfolkMovieNPC.java|TownsfolkMovieNPC.java]]
 +  * **Base Class**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/ImmortalNPC.java|ImmortalNPC.java]]
 +  * **Registration**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/common/MobFactory.java#L240|MobFactory.java]]
 +  * **String Resources**:
 +    * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|TownsfolkNPC_Message strings]]
 +    * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|TownsfolkSilentNPC_Message strings]]
 +    * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|TownsfolkMovieNPC_Message strings]]
 +
 +==== Related ====
 +  * [[rpd:npcs|NPCs]] - Other non-player characters
 +  * [[rpd:town|Town]] - The town area where this NPC is found
 +
 +{{tag> rpd npcs town}}