Implement Faith lv1-3

This commit is contained in:
Anthony Lawn 2022-12-12 10:39:45 -06:00
parent e684191660
commit 8354d08846

View file

@ -133,8 +133,20 @@ const layer = createLayer(id, function (this: BaseLayer) {
const activeBonfires = persistent<DecimalSource>(0);
const bonfireLogs = computed(() => Decimal.times(activeBonfires.value, 10000));
const bonfireCoal = computed(() => Decimal.times(activeBonfires.value, 10));
const bonfireAsh = computed(() => Decimal.times(activeBonfires.value, 1000));
const bonfireCoal = computed(() => {
let gain = Decimal.times(activeBonfires.value, 10);
if (management.elfTraining.bonfireTraining.milestones[0].earned.value) {
gain = gain.times(5);
}
return gain;
});
const bonfireAsh = computed(() => {
let gain = Decimal.times(activeBonfires.value, 1000);
if (management.elfTraining.bonfireTraining.milestones[0].earned.value) {
gain = gain.times(5);
}
return gain;
});
const buildBonfire = createBuyable(() => ({
resource: fireResource,
cost() {
@ -240,6 +252,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
Decimal.pow(activeDrills.value, oil.row2Upgrades[1].bought.value ? 2 : 1),
5e7
).times(metal.efficientDrill.bought.value ? 2 : 1)
.times(management.elfTraining.bonfireElfTraining.milestones[2].earned.value ? 2 : 1)
.times(management.elfTraining.kilnTraining.milestones[2].earned.value ? 2 : 1)
);
const buildDrill = createBuyable(() => ({
@ -670,6 +683,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
description: "Mining boots",
enabled: cloth.metalUpgrades.metalUpgrade1.bought
})),
createExponentialModifier(() => ({
exponent: 1.1,
description: "Faith Level 2",
enabled: management.elfTraining.bonfireTraining.milestones[1].earned
})),
createExponentialModifier(() => ({
exponent: 1.1,
description: "Snowball Level 2",