1
0
Fork 0
mirror of https://github.com/thepaperpilot/Advent-Incremental.git synced 2025-03-31 13:01:02 +00:00

Implement Joy lv1-3

This commit is contained in:
Anthony Lawn 2022-12-12 10:47:19 -06:00
parent 1950404b72
commit eea9ce22c0

View file

@ -82,8 +82,20 @@ const layer = createLayer(id, function (this: BaseLayer) {
const activeFires = persistent<DecimalSource>(0); const activeFires = persistent<DecimalSource>(0);
const fireLogs = computed(() => Decimal.times(activeFires.value, 1000)); const fireLogs = computed(() => Decimal.times(activeFires.value, 1000));
const fireCoal = computed(() => Decimal.times(activeFires.value, 0.1)); const fireCoal = computed(() => {
const fireAsh = computed(() => Decimal.times(activeFires.value, 50)); let gain = Decimal.times(activeFires.value, 0.1);
if (management.elfTraining.smallfireElfTraining.milestones[0].earned.value) {
gain = gain.times(5);
}
return gain;
});
const fireAsh = computed(() => {
let gain = Decimal.times(activeFires.value, 50);
if (management.elfTraining.smallfireElfTraining.milestones[0].earned.value) {
gain = gain.times(5);
}
return gain;
});
const buildFire = createBuyable(() => ({ const buildFire = createBuyable(() => ({
resource: trees.logs, resource: trees.logs,
cost() { cost() {
@ -191,14 +203,14 @@ const layer = createLayer(id, function (this: BaseLayer) {
const kilnLogs = computed(() => Decimal.times(activeKilns.value, 1e6)); const kilnLogs = computed(() => Decimal.times(activeKilns.value, 1e6));
const kilnCoal = computed(() => { const kilnCoal = computed(() => {
let gain = Decimal.times(activeKilns.value, 1e4); let gain = Decimal.times(activeKilns.value, 1e4);
if (management.elfTraining.kilnTraining.milestones[0].earned.value) { if (management.elfTraining.kilnElfTraining.milestones[0].earned.value) {
gain = gain.times(5); gain = gain.times(5);
} }
return gain; return gain;
}); });
const kilnAsh = computed(() => { const kilnAsh = computed(() => {
let gain = Decimal.times(activeKilns.value, 1e4); let gain = Decimal.times(activeKilns.value, 1e4);
if (management.elfTraining.kilnTraining.milestones[0].earned.value) { if (management.elfTraining.kilnElfTraining.milestones[0].earned.value) {
gain = gain.times(5); gain = gain.times(5);
} }
return gain; return gain;
@ -252,8 +264,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
Decimal.pow(activeDrills.value, oil.row2Upgrades[1].bought.value ? 2 : 1), Decimal.pow(activeDrills.value, oil.row2Upgrades[1].bought.value ? 2 : 1),
5e7 5e7
).times(metal.efficientDrill.bought.value ? 2 : 1) ).times(metal.efficientDrill.bought.value ? 2 : 1)
.times(management.elfTraining.smallfireElfTraining.milestones[2].earned.value ? 2 : 1)
.times(management.elfTraining.bonfireElfTraining.milestones[2].earned.value ? 2 : 1) .times(management.elfTraining.bonfireElfTraining.milestones[2].earned.value ? 2 : 1)
.times(management.elfTraining.kilnTraining.milestones[2].earned.value ? 2 : 1) .times(management.elfTraining.kilnElfTraining.milestones[2].earned.value ? 2 : 1)
); );
const buildDrill = createBuyable(() => ({ const buildDrill = createBuyable(() => ({
resource: metal.metal, resource: metal.metal,
@ -683,6 +696,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
description: "Mining boots", description: "Mining boots",
enabled: cloth.metalUpgrades.metalUpgrade1.bought enabled: cloth.metalUpgrades.metalUpgrade1.bought
})), })),
createExponentialModifier(() => ({
exponent: 1.1,
description: "Joy Level 2",
enabled: management.elfTraining.smallfireElfTraining.milestones[1].earned
})),
createExponentialModifier(() => ({ createExponentialModifier(() => ({
exponent: 1.1, exponent: 1.1,
description: "Faith Level 2", description: "Faith Level 2",
@ -691,7 +709,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
createExponentialModifier(() => ({ createExponentialModifier(() => ({
exponent: 1.1, exponent: 1.1,
description: "Snowball Level 2", description: "Snowball Level 2",
enabled: management.elfTraining.kilnTraining.milestones[1].earned enabled: management.elfTraining.kilnElfTraining.milestones[1].earned
})) }))
]); ]);
const computedAshGain = computed(() => ashGain.apply(0)); const computedAshGain = computed(() => ashGain.apply(0));