From e0d1b5a726aaadaf5cd2097cab6798ee19974eb0 Mon Sep 17 00:00:00 2001 From: Jason Gessner Date: Thu, 4 Aug 2022 23:24:35 -0400 Subject: [PATCH] Add Midnight Sun to all our startup hacks^Wsupport. --- src/AppBundle/Service/CardsData.php | 6 +++--- web/js/deck.v2.js | 2 +- web/js/initbuild.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AppBundle/Service/CardsData.php b/src/AppBundle/Service/CardsData.php index c1245596..def2fc40 100755 --- a/src/AppBundle/Service/CardsData.php +++ b/src/AppBundle/Service/CardsData.php @@ -142,10 +142,10 @@ public function allsetsdata() { /** @var Cycle[] $list_cycles */ $list_cycles = $this->entityManager->getRepository(Cycle::class)->findBy([], ["position" => "DESC"]); - $non_standard_packs = ['draft', 'napd', 'ms']; + $non_standard_packs = ['draft', 'napd']; $startup_cycles = ['system-gateway', 'system-update-2021', 'ashes', 'borealis']; - $non_startup_cycles = ['ms']; - $non_eternal_packs = ['draft', 'napd', 'tdc', 'ms']; + $non_startup_cycles = []; + $non_eternal_packs = ['draft', 'napd', 'tdc']; $cycles = []; foreach ($list_cycles as $cycle) { $packs = []; diff --git a/web/js/deck.v2.js b/web/js/deck.v2.js index 11fb1ba9..d08e2c3b 100755 --- a/web/js/deck.v2.js +++ b/web/js/deck.v2.js @@ -183,7 +183,6 @@ function create_collection_tab(initialPackSelection) { NRDB.data.cycles.find( { "rotated": true } ).forEach(function(cycle) { rotated_cycles[cycle.code] = 1; }); var rotated_packs = Array(); - rotated_packs['ms'] = 1; NRDB.data.packs.find().forEach(function(pack) { if (rotated_cycles[pack.cycle.code]) { rotated_packs[pack.code] = 1; } }); $('#collection_startup').on('click', function(event) { @@ -199,6 +198,7 @@ function create_collection_tab(initialPackSelection) { startup_packs['sg'] = 1; startup_packs['su21'] = 1; startup_packs['msbp'] = 1; + startup_packs['ms'] = 1; event.preventDefault(); $('#pack_code').find(':checkbox').each(function() { $(this).prop('checked', Boolean(startup_cycles[$(this).prop('name')] || startup_packs[$(this).prop('name')])); diff --git a/web/js/initbuild.js b/web/js/initbuild.js index 10dab31e..68db2159 100644 --- a/web/js/initbuild.js +++ b/web/js/initbuild.js @@ -45,7 +45,7 @@ $(function() { let visible = true; // Startup if (format === 'startup') { - visible = ['df', 'urbp', 'ur', 'sg', 'su21', 'msbp'].some(p => $(this).hasClass('pack-' + p)); + visible = ['df', 'urbp', 'ur', 'sg', 'su21', 'msbp', 'ms'].some(p => $(this).hasClass('pack-' + p)); } // Standard else if (format === 'standard') {