mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-22 00:21:31 +00:00
Balanced up to first relic drop
This commit is contained in:
parent
f5c1969e3a
commit
c36b4c2f6b
2 changed files with 8 additions and 12 deletions
|
@ -884,7 +884,9 @@ export function createPlane(
|
|||
switch (treasureType) {
|
||||
case "cache":
|
||||
randomResource = getRandomResource(random, influences);
|
||||
description = `Gain ${format(rewardsLevel)}x your current ${randomResource}.`;
|
||||
description = `Gain ${format(
|
||||
Decimal.div(rewardsLevel, 12)
|
||||
)}x your current ${randomResource}.`;
|
||||
onComplete = () =>
|
||||
main.grantResource(
|
||||
randomResource,
|
||||
|
@ -893,29 +895,27 @@ export function createPlane(
|
|||
main.resourceNodes.value[randomResource]
|
||||
?.state as unknown as ResourceState | null
|
||||
)?.amount ?? 0,
|
||||
rewardsLevel
|
||||
Decimal.div(rewardsLevel, 12)
|
||||
)
|
||||
);
|
||||
break;
|
||||
case "generation":
|
||||
randomResource = getRandomResource(random, influences);
|
||||
const gain = Decimal.div(rewardsLevel, 120).times(
|
||||
mineLootTable[randomResource]
|
||||
);
|
||||
const gain = Decimal.div(rewardsLevel, 40).times(mineLootTable[randomResource]);
|
||||
description = `Gain ${format(gain)} ${randomResource}/s while plane is active.`;
|
||||
update = diff => main.grantResource(randomResource, Decimal.times(diff, gain));
|
||||
link = computed(() => main.resourceNodes.value[randomResource]);
|
||||
break;
|
||||
case "resourceMulti":
|
||||
effectedResource = randomResource = getRandomResource(random, influences);
|
||||
resourceMulti = Decimal.div(rewardsLevel, 17).pow_base(2);
|
||||
resourceMulti = Decimal.div(rewardsLevel, 10).pow_base(2);
|
||||
description = `Gain ${format(
|
||||
resourceMulti
|
||||
)}x ${randomResource} while plane is active.`;
|
||||
break;
|
||||
case "energyMulti":
|
||||
effectedResource = "energy";
|
||||
resourceMulti = Decimal.div(rewardsLevel, 17).add(1);
|
||||
resourceMulti = Decimal.div(rewardsLevel, 8).add(1);
|
||||
description = `Gain ${format(resourceMulti)}x energy while plane is active.`;
|
||||
break;
|
||||
case "influences":
|
||||
|
|
|
@ -158,11 +158,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
() => resourceLevels.value[resource],
|
||||
(level, prevLevel) => {
|
||||
const diff = Decimal.sub(level, prevLevel);
|
||||
if (
|
||||
Decimal.gt(diff, 0) &&
|
||||
settings.active === player.id &&
|
||||
Decimal.lte(level, 100)
|
||||
) {
|
||||
if (Decimal.gt(diff, 0) && settings.active === player.id) {
|
||||
toast.info(
|
||||
<div>
|
||||
<h3>
|
||||
|
|
Loading…
Reference in a new issue