generated from nhcarrigan/template
feat: add titles system with unlock tracking and character sheet display
Titles are earned by reaching milestones (quests, bosses, gold, clicks, adventurers, guild, prestige, transcendence, apotheosis, achievements, longevity) and are permanent - never lost on prestige/transcendence/ apotheosis resets. 20 titles available at launch. Also fixes a pre-existing P2034 write-conflict on the load backfill path and the exactOptionalPropertyTypes violation in the quest failure handler.
This commit is contained in:
@@ -156,7 +156,8 @@ export const applyTick = (state: GameState, deltaSeconds: number): GameState =>
|
||||
|
||||
const failureChance = ZONE_FAILURE_CHANCE[quest.zoneId] ?? 0.20;
|
||||
if (Math.random() < failureChance) {
|
||||
return { ...quest, status: "available" as const, startedAt: undefined, lastFailedAt: now };
|
||||
const { startedAt: _dropped, ...questWithoutStartedAt } = quest;
|
||||
return { ...questWithoutStartedAt, status: "available" as const, lastFailedAt: now };
|
||||
}
|
||||
|
||||
for (const reward of quest.rewards) {
|
||||
|
||||
Reference in New Issue
Block a user