Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Enhanced Treasures

Enhanced treasures enables typed treasure map spots.

The source lives under src/engine/extensions/enhanced_treasures.

Default State

The extension exports:

export const name = "Enhanced treasures";
export const enabled = true;

It is enabled by default unless saved extension state overrides it.

Runtime Behavior

On registration, the extension sets:

treasureConfig.ENHANCED_MODE_ENABLED = true;

The treasure map helper uses this flag when choosing the map spot icon for a treasure descriptor.

Map Spots

When enhanced mode is disabled, every treasure uses the generic treasure map mark.

When enhanced mode is enabled, getTreasureMapSpot maps treasure type to mark:

Treasure typeMap mark
COMMONtreasure
RAREtreasure_rare
EPICtreasure_epic
UNIQUEtreasure_unique

Treasure state itself is still owned by TreasureManager and treasureConfig.TREASURES.

Save Data

This extension does not export save or load. Treasure manager state is saved by TreasureManager.

Editing Notes

  • Keep the extension toggle in main.ts.
  • Keep treasure type-to-icon behavior in map_spot_treasure.ts.
  • Keep treasure state changes in TreasureManager, not in this extension.