fix: resolve sync count inflation, add essence/s display, sort auto-buy by level

Closes #147: patch functions now detect actual changes before incrementing
the patched counter, preventing inflated sync reports.

Closes #149: computeEssencePerSecond exported from tick engine and shown
in the resource bar dropdown alongside Gold/s.

Closes #150: auto-buy now sorts adventurers by level descending for
semantic clarity, ensuring highest-tier units are purchased first.
This commit is contained in:
2026-03-25 16:16:21 -07:00
committed by Naomi Carrigan
parent 9926e7f639
commit ad4fcc2811
4 changed files with 155 additions and 9 deletions
+1 -1
View File
@@ -1127,7 +1127,7 @@ export const GameProvider = ({
return adventurer.unlocked && next.resources.gold >= cost;
}).
sort((adventurerA, adventurerB) => {
return adventurerB.combatPower - adventurerA.combatPower;
return adventurerB.level - adventurerA.level;
});
if (bestAdventurer !== undefined) {
const purchaseCost