Add notif to dyes when reset

This commit is contained in:
thepaperpilot 2022-12-19 07:35:15 -06:00
parent ad0b9fec37
commit 044ba23617
2 changed files with 3 additions and 0 deletions

View file

@ -195,6 +195,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
(["red", "yellow", "blue", "orange", "green", "purple"] as const).forEach(dyeColor => {
dyes.dyes[dyeColor].amount.value = 0;
dyes.dyes[dyeColor].buyable.amount.value = 0;
main.days[10].recentlyUpdated.value = true;
});
}
})) as GenericUpgrade;

View file

@ -848,6 +848,7 @@ const layer = createLayer(id, () => {
dyeColor => {
dyes.dyes[dyeColor].amount.value = 0;
dyes.dyes[dyeColor].buyable.amount.value = 0;
main.days[10].recentlyUpdated.value = true;
}
);
}
@ -864,6 +865,7 @@ const layer = createLayer(id, () => {
(["red", "yellow", "blue"] as const).forEach(dyeColor => {
dyes.dyes[dyeColor].amount.value = 0;
dyes.dyes[dyeColor].buyable.amount.value = 0;
main.days[10].recentlyUpdated.value = true;
});
}
})),