Download src/config/titles.ts from NAP1320/RotNot: direct link, hf CLI and curl.
- Browser
- Download file 1.62 kB
-
https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/src/config/titles.ts
- Command line
-
hf download hf://spaces/NAP1320/RotNot/src/config/titles.ts
-
curl -L -o titles.ts https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/src/config/titles.ts
1.62 kB
| /** | |
| * Title progression system. | |
| * | |
| * Titles are earned by reaching overall user levels (not category levels). | |
| * The user's title updates automatically when they level up past a threshold. | |
| * | |
| * Category-specific mastery titles (from cosmetic skill tree nodes at L50) | |
| * are handled separately by the skill-unlock system. | |
| */ | |
| export interface TitleThreshold { | |
| level: number; | |
| title: string; | |
| } | |
| /** | |
| * Ordered list of title thresholds (ascending by level). | |
| * The user gets the title for the highest threshold they've reached. | |
| */ | |
| export const TITLE_THRESHOLDS: TitleThreshold[] = [ | |
| { level: 1, title: "Smooth Brain" }, | |
| { level: 3, title: "Slightly Wrinkled" }, | |
| { level: 5, title: "Budding Thinker" }, | |
| { level: 8, title: "Pattern Seeker" }, | |
| { level: 12, title: "Focused Mind" }, | |
| { level: 16, title: "Sharp Wit" }, | |
| { level: 20, title: "Knowledge Hunter" }, | |
| { level: 25, title: "Deep Thinker" }, | |
| { level: 30, title: "Cognitive Warrior" }, | |
| { level: 35, title: "Brain Athlete" }, | |
| { level: 40, title: "Mental Titan" }, | |
| { level: 45, title: "Thought Master" }, | |
| { level: 50, title: "Fully Wrinkled" }, | |
| { level: 60, title: "Synaptic Sage" }, | |
| { level: 75, title: "Cortex Commander" }, | |
| { level: 100, title: "Transcendent Mind" }, | |
| ]; | |
| /** | |
| * Returns the title for a given overall user level. | |
| * Picks the highest threshold the level meets or exceeds. | |
| */ | |
| export function getTitleForLevel(level: number): string { | |
| let title = TITLE_THRESHOLDS[0].title; | |
| for (const t of TITLE_THRESHOLDS) { | |
| if (level >= t.level) { | |
| title = t.title; | |
| } else { | |
| break; | |
| } | |
| } | |
| return title; | |
| } | |