mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-04-01 21:41:00 +00:00
Added notification for coal drill upgrade
This commit is contained in:
parent
307a887053
commit
fc17b12ac7
1 changed files with 5 additions and 1 deletions
|
@ -20,6 +20,7 @@ import coal from "./coal"
|
||||||
import { createUpgrade, GenericUpgrade } from "features/upgrades/upgrade";
|
import { createUpgrade, GenericUpgrade } from "features/upgrades/upgrade";
|
||||||
import { noPersist } from "game/persistence"
|
import { noPersist } from "game/persistence"
|
||||||
import { createBuyable, GenericBuyable } from "features/buyable";
|
import { createBuyable, GenericBuyable } from "features/buyable";
|
||||||
|
import { main } from "../projEntry";
|
||||||
|
|
||||||
const id = "metal";
|
const id = "metal";
|
||||||
const day = 7;
|
const day = 7;
|
||||||
|
@ -211,7 +212,10 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
},
|
},
|
||||||
visibility: () => showIf(Decimal.gte(oreDrill.amount.value, 1) && (
|
visibility: () => showIf(Decimal.gte(oreDrill.amount.value, 1) && (
|
||||||
coalDrill.bought.value ||
|
coalDrill.bought.value ||
|
||||||
Decimal.lt(coal.computedCoalGain.value, Decimal.times(computedOreAmount.value, computedOreSpeed.value).div(maxOreProgress).times(coalCost))))
|
Decimal.lt(coal.computedCoalGain.value, Decimal.times(computedOreAmount.value, computedOreSpeed.value).div(maxOreProgress).times(coalCost)))),
|
||||||
|
onPurchase() {
|
||||||
|
main.days[2].recentlyUpdated.value = true;
|
||||||
|
}
|
||||||
})) as GenericUpgrade;
|
})) as GenericUpgrade;
|
||||||
const industrialFurnace = createUpgrade(() => ({
|
const industrialFurnace = createUpgrade(() => ({
|
||||||
canAfford() {
|
canAfford() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue