fix: use the correct magic number for crew member seeds
All checks were successful
Build / build (pull_request) Successful in 50s
All checks were successful
Build / build (pull_request) Successful in 50s
This commit is contained in:
parent
1dffcf979f
commit
35bbc58933
@ -812,7 +812,7 @@ export const addItem = async (
|
|||||||
if (!seed) {
|
if (!seed) {
|
||||||
throw new Error(`Expected crew member to have a 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 {
|
return {
|
||||||
...addCrewMember(inventory, typeName, seed),
|
...addCrewMember(inventory, typeName, seed),
|
||||||
...occupySlot(inventory, InventorySlot.CREWMEMBERS, premiumPurchase)
|
...occupySlot(inventory, InventorySlot.CREWMEMBERS, premiumPurchase)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user