feat: production chain
This commit is contained in:
@@ -76,9 +76,8 @@ export function currentWorldTimeSeconds(world: WorldState | undefined, worldTime
|
||||
return 0;
|
||||
}
|
||||
|
||||
const baseUtcMs = Date.parse(world.generatedAtUtc);
|
||||
const elapsedMs = performance.now() - worldTimeSyncMs;
|
||||
return ((baseUtcMs + elapsedMs) / 1000) + (world.seed * 97);
|
||||
return world.orbitalTimeSeconds + ((elapsedMs / 1000) * world.orbitalSimulation.simulatedSecondsPerRealSecond);
|
||||
}
|
||||
|
||||
export function hashUnit(seed: number, value: string): number {
|
||||
|
||||
Reference in New Issue
Block a user