chore: handle motorcycle in addItems #970
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "add-mc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #968
@ -856,0 +868,4 @@
}
const index = inventory.Motorcycles.push({ ItemType: typeName }) - 1;
inventoryChanges.Motorcycles ??= [];
(inventoryChanges.Motorcycles as object[]).push(inventory.Motorcycles[index].toJSON());
i would like not to use as object[] defeats the purpose of type checking
It really doesn't matter