fix: use the correct magic number for crew member seeds
All checks were successful
Build / build (pull_request) Successful in 50s

This commit is contained in:
Sainan 2025-07-08 17:53:26 +02:00
parent 1dffcf979f
commit 35bbc58933

View File

@ -812,7 +812,7 @@ export const addItem = async (
if (!seed) {
throw new Error(`Expected crew member to have a seed`);
}
seed |= 0x33b81en << 32n;
seed |= BigInt(Math.trunc(inventory.Created.getTime() / 1000) & 0xffffff) << 32n;
return {
...addCrewMember(inventory, typeName, seed),
...occupySlot(inventory, InventorySlot.CREWMEMBERS, premiumPurchase)