feat(import): Consumables
All checks were successful
Build / build (20) (push) Successful in 35s
Build / build (22) (push) Successful in 1m10s
Build / build (18) (push) Successful in 53s
Build / build (18) (pull_request) Successful in 36s
Build / build (20) (pull_request) Successful in 51s
Build / build (22) (pull_request) Successful in 1m9s
All checks were successful
Build / build (20) (push) Successful in 35s
Build / build (22) (push) Successful in 1m10s
Build / build (18) (push) Successful in 53s
Build / build (18) (pull_request) Successful in 36s
Build / build (20) (pull_request) Successful in 51s
Build / build (22) (pull_request) Successful in 1m9s
This commit is contained in:
parent
c1fcd3042e
commit
e4d06c62a6
@ -155,7 +155,7 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
|
|||||||
if (client.Upgrades !== undefined) {
|
if (client.Upgrades !== undefined) {
|
||||||
replaceArray<IUpgradeDatabase>(db.Upgrades, client.Upgrades.map(convertUpgrade));
|
replaceArray<IUpgradeDatabase>(db.Upgrades, client.Upgrades.map(convertUpgrade));
|
||||||
}
|
}
|
||||||
for (const key of ["RawUpgrades", "MiscItems"] as const) {
|
for (const key of ["RawUpgrades", "MiscItems", "Consumables"] as const) {
|
||||||
if (client[key] !== undefined) {
|
if (client[key] !== undefined) {
|
||||||
db[key].splice(0, db[key].length);
|
db[key].splice(0, db[key].length);
|
||||||
client[key].forEach(x => {
|
client[key].forEach(x => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user