mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-22 00:21:31 +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)
|
||||
) {
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue