Balanced up to first relic drop

This commit is contained in:
thepaperpilot 2023-05-12 09:13:41 -05:00
parent f5c1969e3a
commit c36b4c2f6b
2 changed files with 8 additions and 12 deletions

View file

@ -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":

View file

@ -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>