1
0
Fork 0
polaris-task-force/src/lib/journals/xp.ts

11 lines
513 B
TypeScript

import { CONTRIBUTION_RULES } from "@/lib/contributions/rules";
/**
* Minimum visible body length (chars) for a published journal entry to earn
* contribution XP; shorter entries still publish, they just do not count.
* Shared by the publish action and the composer's XP hint so they never drift.
*/
export const JOURNAL_XP_MIN_CHARS = 200;
/** XP earned for publishing a qualifying journal entry (from the rule table). */
export const JOURNAL_XP_POINTS = CONTRIBUTION_RULES["journal-publish"].points ?? 0;