feat: add zone-scaled quest failure chance

Quests now have a random chance of failing when their timer expires.
On failure the quest resets to available (no rewards lost, just time).
Failure chance scales by zone: 10% in Verdant Vale up to 40% in the
end-game zones. The Quest type gains lastFailedAt so the UI can show
a warning on subsequent attempts.
This commit is contained in:
2026-03-07 12:13:35 -08:00
committed by Naomi Carrigan
parent 58e7000954
commit 25d4a11eeb
4 changed files with 44 additions and 0 deletions
@@ -60,6 +60,9 @@ const QuestCard = ({ quest, partyCombatPower, unlockHint, zoneHint }: QuestCardP
{!zoneHint && unlockHint && <p className="unlock-hint">📜 Complete: {unlockHint}</p>}
</>
)}
{quest.status === "available" && quest.lastFailedAt != null && (
<p className="quest-failed-hint"> Last attempt failed</p>
)}
{quest.status === "available" && (
<button
className="start-quest-button"