User Tools

Site Tools


rpd:wndfortuneteller

Differences

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

Link to this comparison view

rpd:wndfortuneteller [2025/12/26 05:06] – Add spell system and fortune teller window pages, update liquid flame and potion pages mikerpd:wndfortuneteller [2025/12/26 05:08] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Fortune Teller Window ======
  
 +The **Fortune Teller Window** refers to the user interface that appears when interacting with the [[rpd:fortuneteller_npc|Fortune Teller NPC]]. This window provides options to identify items in the player's inventory.
 +
 +==== Functionality ====
 +  * **Item Identification:** Allows players to identify unID'd items in exchange for gold
 +  * **Single Item Option:** Identify one specific item for 50 gold (modified by difficulty and Ring of Haggler)
 +  * **All Items Option:** Identify all unID'd items in inventory for 50 gold per item
 +  * **Gold Cost:** Standard cost is 50 gold per item, modified by game difficulty and Ring of Haggler
 +
 +==== Technical Implementation ====
 +  * **Java Class:** ''com.nyrds.pixeldungeon.windows.WndFortuneTeller.java''
 +  * **Window System:** Built using the game's window system
 +  * **Interaction:** Called when the player interacts with the Fortune Teller NPC
 +  * **Gold Calculation:** Cost adjusted by ''GOLD_COST'' (50) and difficulty factors
 +
 +==== Mechanics ====
 +  * **Verification:** Checks if player has enough gold before proceeding
 +  * **Item Selection:** Allows user to select which unID'd item to identify
 +  * **Cost Calculation:** Total cost displayed for the identification service
 +  * **Confirmation:** Process requires confirmation before spending gold
 +
 +==== Usage ====
 +  * **Alternative to Scrolls:** Provides an alternative to [[rpd:scroll_of_identify_item|Scroll of Identify]]
 +  * **Efficiency:** Cost-effective when many items need identification
 +  * **Haggler Bonus:** [[rpd:ring_of_haggler_item|Ring of Haggler]] reduces costs by 10%
 +  * **Inventory Management:** Helps manage and understand unidentified items
 +
 +==== Code References ====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/windows/WndFortuneTeller.java|WndFortuneTeller.java]]
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/FortuneTellerNPC.java|FortuneTellerNPC.java]]
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/scrolls/ScrollOfIdentify.java|ScrollOfIdentify.java]]
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/rings/RingOfHaggler.java|RingOfHaggler.java]]
 +  * [[mr:wndfortuneteller|mr:wndfortuneteller]]
 +
 +==== Related Content ====
 +  * [[rpd:fortuneteller_npc|Fortune Teller NPC]]
 +  * [[rpd:scroll_of_identify_item|Scroll of Identify]]
 +  * [[rpd:ring_of_haggler_item|Ring of Haggler]]
 +  * [[rpd:item_identification|Item Identification]]
 +
 +{{tag> rpd ui npcs fortune_teller window }}