Implemented gold relic

This commit is contained in:
thepaperpilot 2023-05-12 16:01:38 -05:00
parent 45c0c5e40d
commit 563fcd7e59

View file

@ -657,10 +657,13 @@ export function createPlane(
) &&
isVisible(bar.visibility)
) {
const totalDiff = Decimal.times(
computedPlanarSpeedModifier.value,
diff
);
let totalDiff = Decimal.times(computedPlanarSpeedModifier.value, diff);
if (main.toolNodes.value.goldRelic != null) {
totalDiff = Decimal.pow(
isEmpowered("goldRelic") ? 4 : 2,
earnedTreasures.value.length
).times(totalDiff);
}
xp.value = Decimal.add(totalDiff, xp.value);
}
});