mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 08:31:35 +00:00
make 4 new elves not reset days 1-3
This commit is contained in:
parent
a4ccedb3da
commit
50e228245b
1 changed files with 3 additions and 2 deletions
|
@ -629,7 +629,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
description: jsx(() => (
|
||||
<>
|
||||
{options.description}
|
||||
{upgrade.bought.value ? null : (
|
||||
{(upgrade.bought.value && (!["Peppermint", "Twinkle", "Cocoa", "Frosty"].includes(options.name))) ? null : (
|
||||
<>
|
||||
{" "}
|
||||
Training this elf will require resetting all your progress from
|
||||
|
@ -652,7 +652,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
style: "width: 190px",
|
||||
onPurchase() {
|
||||
options.onPurchase?.();
|
||||
elfReset.reset();
|
||||
if(!["Peppermint", "Twinkle", "Cocoa", "Frosty"].includes(options.name)){
|
||||
elfReset.reset();}
|
||||
}
|
||||
};
|
||||
}) as GenericUpgrade & {
|
||||
|
|
Loading…
Reference in a new issue