mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-25 01:41:44 +00:00
Implement wood relic
This commit is contained in:
parent
451454251e
commit
cd9429b54a
1 changed files with 10 additions and 0 deletions
|
@ -54,6 +54,7 @@ import {
|
|||
UpgraderState,
|
||||
influences,
|
||||
mineLootTable,
|
||||
relics,
|
||||
resourceNames,
|
||||
tools
|
||||
} from "./data";
|
||||
|
@ -124,6 +125,10 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
berylium: board.types.automator.nodes.value[0],
|
||||
ultimatum: board.types.investments.nodes.value[0]
|
||||
}));
|
||||
const numRelicsOwned = computed(
|
||||
() =>
|
||||
Object.keys(relics).filter(key => (`${key}Relic` as Passives) in toolNodes.value).length
|
||||
);
|
||||
|
||||
const influenceNodes: ComputedRef<Record<Influences, BoardNode>> = computed(() => ({
|
||||
...board.types.influence.nodes.value.reduce((acc, curr) => {
|
||||
|
@ -531,6 +536,11 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
multiplier: () => (isEmpowered("dirt") ? 4 : 2),
|
||||
description: () => (isEmpowered("dirt") ? "Empowered " : "") + tools.dirt.name,
|
||||
enabled: () => toolNodes.value.dirt != null
|
||||
})),
|
||||
createMultiplicativeModifier(() => ({
|
||||
multiplier: () => Decimal.pow(numRelicsOwned.value, isEmpowered("woodRelic") ? 2 : 1),
|
||||
description: () => (isEmpowered("woodRelic") ? "Empowered " : "") + relics.wood,
|
||||
enabled: () => toolNodes.value.woodRelic != null
|
||||
}))
|
||||
]);
|
||||
const computedMiningSpeedModifier = computed(() => miningSpeedModifier.apply(1));
|
||||
|
|
Loading…
Reference in a new issue