From a7bf755d6b14c1396a067060ace1fc21f33d2f12 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Wed, 15 May 2024 01:24:42 +1000 Subject: [PATCH] Add spaces --- src/data/egg.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/egg.ts b/src/data/egg.ts index fd8f8026fcc..41216f27ee7 100644 --- a/src/data/egg.ts +++ b/src/data/egg.ts @@ -99,8 +99,8 @@ export function getLegendaryGachaSpeciesForTimestamp(scene: BattleScene, timesta const timeDate = new Date(timestamp); const dayDate = new Date(Date.UTC(timeDate.getUTCFullYear(), timeDate.getUTCMonth(), timeDate.getUTCDate())); const dayTimestamp = timeDate.getTime(); // Timestamp of current week - const offset = Math.floor(Math.floor(dayTimestamp / 86400000)/legendarySpecies.length); // Cycle number - const index = Math.floor(dayTimestamp / 86400000)%legendarySpecies.length // Index within cycle + const offset = Math.floor(Math.floor(dayTimestamp / 86400000) / legendarySpecies.length); // Cycle number + const index = Math.floor(dayTimestamp / 86400000) % legendarySpecies.length // Index within cycle scene.executeWithSeedOffset(() => { ret = Phaser.Math.RND.shuffle(legendarySpecies)[index];