mr:fortuneteller_npc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mr:fortuneteller_npc [2026/04/07 17:28] – Fix wiki page issues: convert duplicate pages to redirects, correct Russian pickaxe stats, improve mr:fortuneteller_npc code references, fix Spanish section heading Qwen Assistant | mr:fortuneteller_npc [2026/04/09 07:28] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Fortuneteller Npc - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ===== Overview ===== | ||
| + | Fortune Teller NPC is a non-player character that provides item identification services for gold. | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no JSON configuration exists | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Implementation Details ===== | ||
| + | * **Parent Class:** ImmortalNPC (cannot be killed) | ||
| + | * **AI Behavior:** Passive NPC that waits for player interaction | ||
| + | * **Interaction: | ||
| + | * **Sprite Direction: | ||
| + | |||
| + | ===== Identification Mechanics ===== | ||
| + | * **Base Cost:** 50 gold per item (GOLD_COST constant) | ||
| + | * **Difficulty Scaling:** Cost multiplied by GameLoop.getDifficultyFactor() | ||
| + | * **Ring of Haggler Discount:** 10% reduction when hero has RingOfHaggler.Haggling buff | ||
| + | * **Single Item:** Opens item selection dialog for WndBag.Mode.UNIDENTIFED items | ||
| + | * **Identify All:** Uses hero.getBelongings().identify() to identify all items at once | ||
| + | * **Gold Check:** Buttons disabled if hero.gold() < cost | ||
| + | * **Identification Method:** Uses ScrollOfIdentify.identify() for consistency | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
