====== Sociologist NPC ====== {{ rpd:images:sociologistnpc_sprite.png|Sociologist NPC Sprite }} ==== Description ==== The **Sociologist NPC** is an NPC character in Remixed Dungeon who asks if the player wants to participate in a survey. This character is part of a gameplay feature that allows players to access survey content. ==== Location ==== * Found randomly in the dungeon levels ==== Interactions ==== * The NPC presents a dialogue asking the player if they'd like to participate in a survey * If the player agrees, requests internet permission to download survey content * If the player refuses, the NPC leaves the player alone ==== Java Class ==== * **Java Class:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/SociologistNPC.java|SociologistNPC.java]] * **Base Class:** [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/ImmortalNPC.java|ImmortalNPC.java]] ==== Behavior ==== * When approached, presents a dialogue with "Yes" and "No" options * If the player selects "Yes", requests internet permission and attempts to download survey.json from an external source * If permission is granted, downloads survey content from a GitHub repository * If the player selects "No", the NPC says a message about internet being required for surveys ==== Implementation Details ==== The NPC is implemented as an ImmortalNPC that implements DownloadStateListener.IDownloadComplete and InterstitialPoint interfaces, allowing it to handle the download process and manage the UI during the download. {{tag> rpd npcs}}