mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-09 03:43:20 +01:00
Add original todo value for future use
This commit is contained in:
parent
734b9d378a
commit
7cf1c86f2e
3 changed files with 13 additions and 0 deletions
|
@ -386,6 +386,12 @@
|
|||
...ascensionRes,
|
||||
...talentRes,
|
||||
},
|
||||
original: {
|
||||
mora: moraNeeded,
|
||||
...levelRes,
|
||||
...ascensionRes,
|
||||
...talentRes,
|
||||
},
|
||||
});
|
||||
|
||||
addedToTodo = true;
|
||||
|
|
|
@ -314,6 +314,11 @@
|
|||
...levelRes,
|
||||
...ascensionRes,
|
||||
},
|
||||
original: {
|
||||
mora: moraNeeded,
|
||||
...levelRes,
|
||||
...ascensionRes,
|
||||
},
|
||||
});
|
||||
|
||||
addedToTodo = true;
|
||||
|
|
|
@ -20,6 +20,7 @@ export function addTodo(data) {
|
|||
value[itemsIndex] = {
|
||||
type: 'item',
|
||||
resources: items,
|
||||
original: items,
|
||||
};
|
||||
} else {
|
||||
const items = { [data.item.id]: data.amount };
|
||||
|
@ -27,6 +28,7 @@ export function addTodo(data) {
|
|||
value.push({
|
||||
type: 'item',
|
||||
resources: items,
|
||||
original: items,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue