fix: auto-adventurer sorts by combat power instead of current cost (#97)

This commit is contained in:
2026-03-23 11:08:33 -07:00
committed by Naomi Carrigan
parent 7bd6b2d3e3
commit ff26e19779
+1 -5
View File
@@ -1094,11 +1094,7 @@ export const GameProvider = ({
return adventurer.unlocked && next.resources.gold >= cost;
}).
sort((adventurerA, adventurerB) => {
const costA
= adventurerA.baseCost * Math.pow(1.15, adventurerA.count);
const costB
= adventurerB.baseCost * Math.pow(1.15, adventurerB.count);
return costB - costA;
return adventurerB.combatPower - adventurerA.combatPower;
});
if (bestAdventurer !== undefined) {
const purchaseCost