forked from OpenWF/SpaceNinjaServer
feat(import): Consumables (#895)
Closes #894 Reviewed-on: http://209.141.38.3/OpenWF/SpaceNinjaServer/pulls/895
This commit is contained in:
parent
f15f2bfdbd
commit
a5d74b92c8
@ -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