chore: handle motorcycle in addItems #970

Merged
Sainan merged 1 commits from add-mc into main 2025-02-19 13:53:22 -08:00
Owner

Closes #968

Closes #968
Sainan added 1 commit 2025-02-19 13:47:10 -08:00
chore: handle motorcycle in addItems
All checks were successful
Build / build (18) (pull_request) Successful in 34s
Build / build (22) (pull_request) Successful in 32s
Build / build (20) (pull_request) Successful in 57s
Build / build (18) (push) Successful in 36s
Build / build (22) (push) Successful in 55s
Build / build (20) (push) Successful in 1m8s
0a041af6d6
OrdisPrime reviewed 2025-02-19 13:50:19 -08:00
@ -856,0 +868,4 @@
}
const index = inventory.Motorcycles.push({ ItemType: typeName }) - 1;
inventoryChanges.Motorcycles ??= [];
(inventoryChanges.Motorcycles as object[]).push(inventory.Motorcycles[index].toJSON());
Owner

i would like not to use as object[] defeats the purpose of type checking

i would like not to use as object[] defeats the purpose of type checking
Author
Owner

It really doesn't matter

It really doesn't matter
Sainan merged commit dee302c996 into main 2025-02-19 13:53:22 -08:00
Sainan deleted branch add-mc 2025-02-19 13:53:22 -08:00
Sign in to join this conversation.
No description provided.