Skip to main content

Profession Data Artifact

The profession_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

FieldTypeDefaultDescription
artifactIdString"profession_data"The unique ID used to reference this storage in TypeWriter.

Stored Data Structure

The artifact stores a map of ProfessionData 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 RpgCoreConfigurationEntry under professions.artifact.
  • It is automatically managed by the Profession Engine when players gain XP or level up.