Profession Data Artifact
Theprofession_data_artifact is a unified storage entry that holds all profession-related data for a player. Unlike some systems that might use one artifact per profession, this single artifact consolidates everything.
Type: Artifact Entry
ID: profession_data_artifact
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
artifactId | String | "profession_data" | The unique ID used to reference this storage in TypeWriter. |
Stored Data Structure
The artifact stores a map ofProfessionData objects, indexed by the profession ID:
- Level: Current level of the profession.
- Experience: Current XP amount.
- Total Experience: Cumulative XP earned over time.
- Unlocks: Set of special abilities or recipes unlocked.
- Statistics: Detailed stats like
activitiesCompleted,timeSpent,bestStreak, etc. - Temporary Boosts: Active XP or stat boosts.
Usage
- This artifact must be referenced in the main
RpgCoreConfigurationEntryunderprofessions.artifact. - It is automatically managed by the Profession Engine when players gain XP or level up.