Fix bookupgrade effect always applying

This commit is contained in:
thepaperpilot 2022-12-13 22:36:24 -06:00
parent 279e8b22c4
commit 55d7a60171

View file

@ -126,7 +126,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
if (management.elfTraining.paperElfTraining.milestones[0].earned.value) {
cost = Decimal.div(cost, sumBooks.value.max(1));
}
if (bookUpgrade.bought){
if (bookUpgrade.bought.value) {
cost = cost.div(10);
}
return cost;