diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index 761b5ad..6136133 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -727,6 +727,18 @@ export const main = createLayer("main", function (this: BaseLayer) { } energy.value = Decimal.add(energy.value, Decimal.times(computedEnergyModifier.value, diff)); + + if (Decimal.lt(energy.value, 0)) { + // Uh oh, time to de-power machines! + energy.value = 0; + mine.value.state = { ...(mine.value.state as object), powered: false }; + toast.warning( +