From 500e412fdb0062d26fcff0ef4c62be90bab5421b Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 15 May 2023 21:10:52 -0500 Subject: [PATCH] Rebalance resource levels and implement portal costs --- src/game/formulas/operations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/formulas/operations.ts b/src/game/formulas/operations.ts index 0e39d58..61f16bc 100644 --- a/src/game/formulas/operations.ts +++ b/src/game/formulas/operations.ts @@ -399,7 +399,7 @@ export function integratePow10(stack: SubstitutionStack, lhs: FormulaSource) { export function invertPowBase(value: DecimalSource, lhs: FormulaSource, rhs: FormulaSource) { if (hasVariable(lhs)) { - return lhs.invert(Decimal.ln(value).div(unrefFormulaSource(rhs))); + return lhs.invert(Decimal.ln(value).div(Decimal.ln(unrefFormulaSource(rhs)))); } else if (hasVariable(rhs)) { return rhs.invert(Decimal.root(unrefFormulaSource(lhs), value)); }