mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-14 01:51:40 +00:00
Fix errors swapping mastery values
This commit is contained in:
parent
8d3092802e
commit
ae37422645
2 changed files with 14 additions and 12 deletions
|
@ -1821,16 +1821,16 @@ const layer = createLayer(id, () => {
|
|||
classrooms: { amount: persistent<DecimalSource>(0) },
|
||||
classroomUpgrade: { bought: persistent<boolean>(false) },
|
||||
advancedUpgrade: { bought: persistent<boolean>(false) },
|
||||
upgrades: {
|
||||
focus1: { bought: persistent<boolean>(false) },
|
||||
focus2: { bought: persistent<boolean>(false) },
|
||||
focus3: { bought: persistent<boolean>(false) }
|
||||
},
|
||||
upgrades2: {
|
||||
focus4: { bought: persistent<boolean>(false) },
|
||||
focus5: { bought: persistent<boolean>(false) },
|
||||
focus6: { bought: persistent<boolean>(false) }
|
||||
},
|
||||
upgrades: [
|
||||
{ bought: persistent<boolean>(false) },
|
||||
{ bought: persistent<boolean>(false) },
|
||||
{ bought: persistent<boolean>(false) }
|
||||
],
|
||||
upgrades2: [
|
||||
{ bought: persistent<boolean>(false) },
|
||||
{ bought: persistent<boolean>(false) },
|
||||
{ bought: persistent<boolean>(false) }
|
||||
],
|
||||
focusMulti: persistent<DecimalSource>(1),
|
||||
focusTargets: persistent<Record<string, boolean>>({}),
|
||||
focusCooldown: persistent<number>(0),
|
||||
|
@ -1859,7 +1859,7 @@ const layer = createLayer(id, () => {
|
|||
classroomUpgrade,
|
||||
advancedUpgrade,
|
||||
|
||||
focusMultiplier: focusMulti,
|
||||
focusMulti,
|
||||
upgrades,
|
||||
upgrades2,
|
||||
focusTargets,
|
||||
|
|
|
@ -98,7 +98,9 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
dyes,
|
||||
management,
|
||||
letters
|
||||
]) { swapMastery(layer.mastery, layer) }
|
||||
]) {
|
||||
swapMastery(layer.mastery, layer);
|
||||
}
|
||||
|
||||
swappingMastery.value = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue