From 58348e657ac7b2691bf7c37be748f4a8087b45b6 Mon Sep 17 00:00:00 2001 From: Danielle Church Date: Tue, 5 Dec 2023 13:12:56 -0500 Subject: [PATCH] Checked in missing file, rip me --- lang/en-EN/game.xml | 1 + saving.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lang/en-EN/game.xml b/lang/en-EN/game.xml index f91f5647..1a0262c5 100644 --- a/lang/en-EN/game.xml +++ b/lang/en-EN/game.xml @@ -17,6 +17,7 @@ • Fixed a mana accounting bug that could cause up to double mana consumption in some cases.
• Actions with multipart progress bars will no longer go past their expected limits if too much progress is made in 1 tick.
• Options that change the game balance have been moved to the Extras menu.
+ • Fixed a game-breaking bug, whoops. Sorry folks!
]]> Dec 3rd, 2023 diff --git a/saving.js b/saving.js index 2eb12edd..0e5f80da 100644 --- a/saving.js +++ b/saving.js @@ -89,6 +89,7 @@ let curTown = 0; const statList = /** @type {const} */(["Dex", "Str", "Con", "Spd", "Per", "Cha", "Int", "Luck", "Soul"]); +/** @type {{[K in typeof statList[number]]?: {exp: number, talent: number, soulstone: number}}} */ const stats = {}; let totalTalent = 0; // eslint-disable-next-line prefer-const @@ -143,9 +144,10 @@ let curLoadout = 0; let loadouts; let loadoutnames; //let loadoutnames = ["1", "2", "3", "4", "5"]; -const skillList = ["Combat", "Magic", "Practical", "Alchemy", "Crafting", "Dark", "Chronomancy", "Pyromancy", "Restoration", "Spatiomancy", "Mercantilism", "Divine", "Commune", "Wunderkind", "Gluttony", "Thievery", "Leadership", "Assassin"]; +const skillList = /** @type {const} */(["Combat", "Magic", "Practical", "Alchemy", "Crafting", "Dark", "Chronomancy", "Pyromancy", "Restoration", "Spatiomancy", "Mercantilism", "Divine", "Commune", "Wunderkind", "Gluttony", "Thievery", "Leadership", "Assassin"]); +/** @type {{[K in typeof skillList[number]]?: {exp: number}}} */ const skills = {}; -const buffList = ["Ritual", +const buffList = /** @type {const} */(["Ritual", "Imbuement", "Imbuement2", "Feast", @@ -159,7 +161,7 @@ const buffList = ["Ritual", "PrestigeChronomancy", "PrestigeBartering", "PrestigeExpOverflow" -]; +]); const dungeonFloors = [6, 9, 20]; const trialFloors = [50, 100, 7, 1000, 25]; @@ -195,6 +197,7 @@ const buffCaps = { PrestigeBartering: 100, PrestigeExpOverflow: 100 }; +/** @type {{[K in typeof buffList[number]]?: {amt: number}}} */ const buffs = {}; const prestigeValues = {}; let goldInvested = 0; @@ -446,6 +449,8 @@ let totalOfflineMs = 0; let bonusSpeed = 1; let bonusActive = false; let currentLoop = 0; +/** @type {Action & ActionExtras} */ +let currentAction = null; const offlineRatio = 1; let totals = { time: 0,