User Tools

Site Tools


mr:service_man_npc

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mr:service_man_npc [2026/03/19 02:29] – Wiki maintenance: Update multiple language pages and mr: namespace content Qwen Assistantmr:service_man_npc [2026/03/23 10:36] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 =====
 +<code xml>
 +<string name="ServiceManNPC_Name">employee</string>
 +<string name="ServiceManNPC_Desc">A regular worker of the local establishments.</string>
 +<string name="ServiceManNPC_NoConnection">I am sorry, you cannot use our service right now. (Internet connection required)</string>
 +<string name="ServiceManNPC_NotReady">Sorry, the movie is not ready yet, you may try again in a few minutes.</string>
 +<string name="ServiceManNPC_Limit">I do apologise, but every new adventurer can watch only %d movies total.</string>
 +<string name="ServiceManNPC_Limit_Reached">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!</string>
 +</code>
 +
 +===== 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 }}