====== Service Man Npc - Code References ====== ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/ServiceManNPC.java|ServiceManNPC.java]] - Main implementation of the Service Man NPC * Extends `ImmortalNPC` base class * Implements `Packable` interface for save/load functionality ===== Key Methods ===== * **interact(Char hero)**: Handles player interaction, checks internet connection and viewing limits * **getReward()**: Returns gold reward item (base 150 gold + bonus based on films seen) * **getLimit()**: Calculates viewing limit (4 + hero level) * **resetLimit()**: Resets the filmsSeen counter ===== Fields ===== * **BASIC_GOLD_REWARD**: Constant = 150 (base gold reward) * **filmsSeen**: Static tracked variable for total films watched by player ===== JSON Configuration ===== This entity does not appear to have specific JSON configuration files. ===== String Resources ===== employee A regular worker of the local establishments. I am sorry, you cannot use our service right now. (Internet connection required) Sorry, the movie is not ready yet, you may try again in a few minutes. I do apologise, but every new adventurer can watch only %d movies total. I do apologise, but you've reached your current limit. But you'll be able to use our service again for every hero level you receive! ===== Lua Scripts ===== This entity is implemented in Java, no Lua script exists ===== Entity Kind ===== * getEntityKind(): ServiceManNPC ===== Related mr Entities ===== * [[mr:immortal_npc|Immortal NPC]] ===== Additional Information ===== * ServiceManNPC is an NPC that provides video reward system functionality * Found in the main game, related to advertising rewards * Allows players to watch videos in exchange for gold rewards ===== Images ===== {{ rpd:images:servicemannpc_sprite.png|Service Man NPC }} {{tag> mr npc service_man_npc }}