User Tools

Site Tools


rpd:wndfortuneteller

Fortune Teller Window

The Fortune Teller Window refers to the user interface that appears when interacting with the 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 Scroll of Identify
  • Efficiency: Cost-effective when many items need identification
  • Haggler Bonus: Ring of Haggler reduces costs by 10%
  • Inventory Management: Helps manage and understand unidentified items

Code References

rpd/wndfortuneteller.txt · Last modified: by 127.0.0.1