mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-25 18:00:25 +00:00
Misinterpreted how star lv 5 should work
This commit is contained in:
parent
6d25877e48
commit
2fc424c7e3
1 changed files with 7 additions and 1 deletions
|
@ -166,6 +166,12 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
style: "width: 600px",
|
||||
freeLevels: computed(() =>
|
||||
management.elfTraining.paperElfTraining.milestones[4].earned.value &&
|
||||
Decimal.gte(
|
||||
Object.values(management.elfTraining).find(
|
||||
training => training.name === options.elfName
|
||||
)?.level.value ?? 0,
|
||||
5
|
||||
) &&
|
||||
![
|
||||
"Star",
|
||||
"Bell",
|
||||
|
@ -175,7 +181,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
"Cocoa",
|
||||
"Frosty"
|
||||
].includes(options.elfName)
|
||||
? Decimal.times(5, management.level5Elves.value)
|
||||
? 5
|
||||
: 0
|
||||
),
|
||||
totalAmount: computed(() => Decimal.add(buyable.amount.value, buyable.freeLevels.value))
|
||||
|
|
Loading…
Reference in a new issue