mr:fortuneteller_npc
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mr:fortuneteller_npc [2025/12/26 18:16] – Rename fortune_teller_n_p_c_mob.txt to fortuneteller_npc.txt and update content to follow correct mr namespace format mike | mr:fortuneteller_npc [2026/04/07 17:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Fortuneteller Npc - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ===== 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: | ||
