Antiques
Estimated reading time: 2 minutesAntique registration adds new museum antique text and collection state.
Entry Points
Use addAntiques to register data. Inject injectAntiques after vanilla creates _museumAntiqueText inside the museumAntiqueText widget.
Recommended injection point:
The single injection call does both jobs:
- Adds registered entries to
_museumAntiqueText. - If
$museumAntiques.antiquesexists, adds missing keys asnotFoundand refreshesmaxCount.
Minimal Example
Config Fields
State Flow
Antique state is still controlled by vanilla <<museumAntiqueStatus key status>>. Common states:
stolen and recovered also exist. The framework only registers text and default state; discovery locations and rewards should remain in your own passages.
boot.json
Object-map form. This is the recommended format when registering multiple entries.
External .json, .yaml, or .yml file:
Array form is also supported. Each item must include key:
