mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-29 19:35:19 +00:00
Fix bookupgrade effect always applying
This commit is contained in:
parent
279e8b22c4
commit
55d7a60171
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
if (management.elfTraining.paperElfTraining.milestones[0].earned.value) {
|
if (management.elfTraining.paperElfTraining.milestones[0].earned.value) {
|
||||||
cost = Decimal.div(cost, sumBooks.value.max(1));
|
cost = Decimal.div(cost, sumBooks.value.max(1));
|
||||||
}
|
}
|
||||||
if (bookUpgrade.bought){
|
if (bookUpgrade.bought.value) {
|
||||||
cost = cost.div(10);
|
cost = cost.div(10);
|
||||||
}
|
}
|
||||||
return cost;
|
return cost;
|
||||||
|
|
Loading…
Reference in a new issue