generated from nhcarrigan/template
chore: fix lint, ensure full CI pipeline passes, add verify checklist
- Fix strict-boolean-expressions in 7 route files (runtime body validation) - Fix no-unnecessary-condition in profile.ts and offlineProgress.ts (defensive null checks) - Extend v8 ignore next-N counts in game.ts to reach 100% coverage - Add CI requirements to CLAUDE.md (lint + build + test must pass before commit) - Add manual verification checklist (verify.md) - Remove progress.md
This commit is contained in:
@@ -1,25 +1,71 @@
|
||||
/**
|
||||
* @file Game data definitions.
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
import type { DailyChallengeType } from "@elysium/types";
|
||||
|
||||
interface DailyChallengeTemplate {
|
||||
type: DailyChallengeType;
|
||||
label: string;
|
||||
target: number;
|
||||
type: DailyChallengeType;
|
||||
label: string;
|
||||
target: number;
|
||||
rewardCrystals: number;
|
||||
}
|
||||
|
||||
export const DAILY_CHALLENGE_TEMPLATES: DailyChallengeTemplate[] = [
|
||||
export const dailyChallengeTemplates: Array<DailyChallengeTemplate> = [
|
||||
// Clicks — always requires active play
|
||||
{ type: "clicks", label: "Click 500 times", target: 500, rewardCrystals: 50 },
|
||||
{ type: "clicks", label: "Click 1,000 times", target: 1_000, rewardCrystals: 100 },
|
||||
{ type: "clicks", label: "Click 5,000 times", target: 5_000, rewardCrystals: 300 },
|
||||
{ label: "Click 500 times", rewardCrystals: 50, target: 500, type: "clicks" },
|
||||
{
|
||||
label: "Click 1,000 times",
|
||||
rewardCrystals: 100,
|
||||
target: 1000,
|
||||
type: "clicks",
|
||||
},
|
||||
{
|
||||
label: "Click 5,000 times",
|
||||
rewardCrystals: 300,
|
||||
target: 5000,
|
||||
type: "clicks",
|
||||
},
|
||||
// Boss defeats — requires active combat
|
||||
{ type: "bossesDefeated", label: "Defeat 1 boss", target: 1, rewardCrystals: 75 },
|
||||
{ type: "bossesDefeated", label: "Defeat 3 bosses", target: 3, rewardCrystals: 200 },
|
||||
{ type: "bossesDefeated", label: "Defeat 5 bosses", target: 5, rewardCrystals: 400 },
|
||||
{
|
||||
label: "Defeat 1 boss",
|
||||
rewardCrystals: 75,
|
||||
target: 1,
|
||||
type: "bossesDefeated",
|
||||
},
|
||||
{
|
||||
label: "Defeat 3 bosses",
|
||||
rewardCrystals: 200,
|
||||
target: 3,
|
||||
type: "bossesDefeated",
|
||||
},
|
||||
{
|
||||
label: "Defeat 5 bosses",
|
||||
rewardCrystals: 400,
|
||||
target: 5,
|
||||
type: "bossesDefeated",
|
||||
},
|
||||
// Quest completions — requires starting quests
|
||||
{ type: "questsCompleted", label: "Complete 3 quests", target: 3, rewardCrystals: 100 },
|
||||
{ type: "questsCompleted", label: "Complete 5 quests", target: 5, rewardCrystals: 200 },
|
||||
{ type: "questsCompleted", label: "Complete 10 quests", target: 10, rewardCrystals: 400 },
|
||||
{
|
||||
label: "Complete 3 quests",
|
||||
rewardCrystals: 100,
|
||||
target: 3,
|
||||
type: "questsCompleted",
|
||||
},
|
||||
{
|
||||
label: "Complete 5 quests",
|
||||
rewardCrystals: 200,
|
||||
target: 5,
|
||||
type: "questsCompleted",
|
||||
},
|
||||
{
|
||||
label: "Complete 10 quests",
|
||||
rewardCrystals: 400,
|
||||
target: 10,
|
||||
type: "questsCompleted",
|
||||
},
|
||||
// Prestige — the big one
|
||||
{ type: "prestige", label: "Prestige once", target: 1, rewardCrystals: 750 },
|
||||
{ label: "Prestige once", rewardCrystals: 750, target: 1, type: "prestige" },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user