From 8b3ee4b4f58be680126ceeaa7c9aad399dbdda82 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Thu, 2 Oct 2025 05:27:56 -0700 Subject: [PATCH] chore: allow sortie image randomisation for most tilesets (#2834) This should reduce the impact while we investigate #2833 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2834 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/services/worldStateService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/worldStateService.ts b/src/services/worldStateService.ts index 572070509..4ee06990c 100644 --- a/src/services/worldStateService.ts +++ b/src/services/worldStateService.ts @@ -361,7 +361,9 @@ export const getSortie = (day: number): ISortie => { Activation: { $date: { $numberLong: dayStart.toString() } }, Expiry: { $date: { $numberLong: dayEnd.toString() } }, Reward: "/Lotus/Types/Game/MissionDecks/SortieRewards", - Seed: 2081, // this seed produces 12 zeroes in a row if asked to pick (0, 1); this way the CorpusIcePlanetTileset image is always index 0, the 'correct' choice. + Seed: selectedNodes.find(x => x.tileset == "CorpusIcePlanetTileset") + ? 2081 // this seed produces 12 zeroes in a row if asked to pick (0, 1); this way the CorpusIcePlanetTileset image is always index 0, the 'correct' choice. + : seed, Boss: boss, Variants: selectedNodes };