Table of Contents

Fortune Teller Window - Code References

Java Classes

JSON Configuration

File: `RemixedDungeon/src/main/assets/mobsDesc/FortuneTellerNPC.json`

{
   "baseSpeed"     :0,
   "spriteDesc"    :"spritesDesc/FortuneTellerNPC.json",
   "scriptFile"    :"scripts/npc/FortuneTeller",
   "friendly"      :true,
   "movable"       :false,
   "aiState"       :"Passive",
   "fraction"      :"NEUTRAL",
   "immortal"      :true,
   "npc"           :true,
   "isHumanoid"    :true,
   "ht"            :1,
   "exp"           :0
}

This entity is implemented via JSON configuration + Lua script (replaced Java classes FortuneTellerNPC.java and WndFortuneTeller.java).

Key properties from JSON:

Lua Script

File: `RemixedDungeon/src/main/assets/scripts/npc/FortuneTeller.lua` Key behaviors implemented in Lua:

String Resource References

Code Implementation

This NPC/window is implemented via JSON configuration + Lua script (migrated from Java classes `com/nyrds/pixeldungeon/mobs/npc/FortuneTellerNPC.java` and `com/nyrds/pixeldungeon/windows/WndFortuneTeller.java`).

Key mechanics:

Behavior