mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-25 17:59:59 +00:00
Implemented gold relic
This commit is contained in:
parent
45c0c5e40d
commit
563fcd7e59
1 changed files with 7 additions and 4 deletions
|
@ -657,10 +657,13 @@ export function createPlane(
|
||||||
) &&
|
) &&
|
||||||
isVisible(bar.visibility)
|
isVisible(bar.visibility)
|
||||||
) {
|
) {
|
||||||
const totalDiff = Decimal.times(
|
let totalDiff = Decimal.times(computedPlanarSpeedModifier.value, diff);
|
||||||
computedPlanarSpeedModifier.value,
|
if (main.toolNodes.value.goldRelic != null) {
|
||||||
diff
|
totalDiff = Decimal.pow(
|
||||||
);
|
isEmpowered("goldRelic") ? 4 : 2,
|
||||||
|
earnedTreasures.value.length
|
||||||
|
).times(totalDiff);
|
||||||
|
}
|
||||||
xp.value = Decimal.add(totalDiff, xp.value);
|
xp.value = Decimal.add(totalDiff, xp.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue