mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-21 16:13:54 +00:00
Buffed gens and resource multis, made caches rarer
This commit is contained in:
parent
f37de454d8
commit
3930d4e55c
1 changed files with 6 additions and 12 deletions
|
@ -959,17 +959,11 @@ export function createPlane(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const treasureWeights = {
|
const treasureWeights = {
|
||||||
cache: "increaseCaches" in influenceState ? 10 : 1,
|
cache: "increaseCaches" in influenceState ? 8 : 0.8,
|
||||||
generation: "increaseGens" in influenceState ? 10 : 1,
|
generation: "increaseGens" in influenceState ? 10 : 1,
|
||||||
resourceMulti: "increaseResourceMults" in influenceState ? 10 : 1,
|
resourceMulti: "increaseResourceMults" in influenceState ? 10 : 1,
|
||||||
energyMulti: "increaseEnergyMults" in influenceState ? 2.5 : 0.25,
|
energyMulti: "increaseEnergyMults" in influenceState ? 2.5 : 0.25,
|
||||||
influences:
|
influences: "increaseInfluences" in influenceState ? 20 : 2,
|
||||||
Object.keys(main.influenceNodes.value).length + influenceTreasures.length ===
|
|
||||||
Object.keys(influenceTypes).length
|
|
||||||
? 0
|
|
||||||
: "increaseInfluences" in influenceState
|
|
||||||
? 20
|
|
||||||
: 2,
|
|
||||||
relic: 0
|
relic: 0
|
||||||
};
|
};
|
||||||
let treasureType = pickRandom(treasureWeights, random);
|
let treasureType = pickRandom(treasureWeights, random);
|
||||||
|
@ -1003,9 +997,9 @@ export function createPlane(
|
||||||
break;
|
break;
|
||||||
case "generation":
|
case "generation":
|
||||||
randomResource = getRandomResource(random, influences);
|
randomResource = getRandomResource(random, influences);
|
||||||
const gain = Decimal.div(rewardsLevel.value, 40).times(
|
const gain = Decimal.pow(rewardsLevel.value, 2)
|
||||||
mineLootTable[randomResource]
|
.div(40)
|
||||||
);
|
.times(mineLootTable[randomResource]);
|
||||||
description = `Gen: Gain ${format(
|
description = `Gen: Gain ${format(
|
||||||
gain
|
gain
|
||||||
)} ${randomResource}/s while plane is active.`;
|
)} ${randomResource}/s while plane is active.`;
|
||||||
|
@ -1014,7 +1008,7 @@ export function createPlane(
|
||||||
break;
|
break;
|
||||||
case "resourceMulti":
|
case "resourceMulti":
|
||||||
effectedResource = randomResource = getRandomResource(random, influences);
|
effectedResource = randomResource = getRandomResource(random, influences);
|
||||||
resourceMulti = Decimal.div(rewardsLevel.value, 10).pow_base(2);
|
resourceMulti = Decimal.pow(rewardsLevel.value, 2).div(10).pow_base(1.5);
|
||||||
description = `Resource Mult: Gain ${format(
|
description = `Resource Mult: Gain ${format(
|
||||||
resourceMulti
|
resourceMulti
|
||||||
)}x ${randomResource} while plane is active.`;
|
)}x ${randomResource} while plane is active.`;
|
||||||
|
|
Loading…
Reference in a new issue