diff --git a/src/AppBundle/Controller/SearchController.php b/src/AppBundle/Controller/SearchController.php index 3a2e6515..26e8c091 100755 --- a/src/AppBundle/Controller/SearchController.php +++ b/src/AppBundle/Controller/SearchController.php @@ -518,7 +518,7 @@ public function displayAction( $standard_legal = "available"; // Startup legality is currently hard-coded since the DB doesn't know anything about it. - $startupCycles = ['system-gateway' => true, 'system-update-2021' => true, 'borealis' => true, 'liberation' => true]; // Hardcoded Startup Codes + $startupCycles = ['system-gateway' => true, 'system-update-2021' => true, 'liberation' => true]; // Hardcoded Startup Codes $startup_legal = false; $rotated_count = 0; diff --git a/src/AppBundle/Service/CardsData.php b/src/AppBundle/Service/CardsData.php index b9f2c098..19da5ca2 100755 --- a/src/AppBundle/Service/CardsData.php +++ b/src/AppBundle/Service/CardsData.php @@ -143,7 +143,7 @@ public function allsetsdata() /** @var Cycle[] $list_cycles */ $list_cycles = $this->entityManager->getRepository(Cycle::class)->findBy([], ["position" => "DESC"]); $non_standard_packs = ['draft', 'napd']; - $startup_cycles = ['system-gateway', 'system-update-2021', 'borealis', 'liberation']; // Hardcoded Startup Codes + $startup_cycles = ['system-gateway', 'system-update-2021', 'liberation']; // Hardcoded Startup Codes $non_startup_cycles = []; $non_eternal_packs = ['draft', 'napd', 'tdc']; $cycles = []; @@ -729,7 +729,7 @@ public function get_search_rows(array $conditions, string $sortorder, string $lo $condition[0] = strtolower($condition[0]); if ($condition[0] == "startup") { // Add the valid cycles for startup and add them to the WHERE clause for the query. - $cycles = ['system-gateway', 'system-update-2021', 'borealis', 'liberation']; // Hardcoded Startup Codes + $cycles = ['system-gateway', 'system-update-2021', 'liberation']; // Hardcoded Startup Codes $placeholders = array(); foreach($cycles as $cycle) { array_push($placeholders, "?$i"); diff --git a/web/js/deck.v2.js b/web/js/deck.v2.js index afe429e9..24bb4514 100755 --- a/web/js/deck.v2.js +++ b/web/js/deck.v2.js @@ -210,15 +210,12 @@ function create_collection_tab(initialPackSelection) { let startup_cycles = Array(); // Hardcoded Startup Codes startup_cycles['system-gateway'] = 1; startup_cycles['system-update-2021'] = 1; - startup_cycles['borealis'] = 1; startup_cycles['liberation'] = 1; let startup_packs = Array(); // Hardcoded Startup Codes startup_packs['sg'] = 1; startup_packs['su21'] = 1; - startup_packs['msbp'] = 1; - startup_packs['ms'] = 1; - startup_packs['ph'] = 1; startup_packs['tai'] = 1; + startup_packs['rwr'] = 1; event.preventDefault(); $('#pack_code').find(':checkbox').each(function() { $(this).prop('checked', Boolean(startup_cycles[$(this).prop('name')] || startup_packs[$(this).prop('name')])); @@ -242,6 +239,7 @@ function create_collection_tab(initialPackSelection) { startup_packs['ms'] = 1; startup_packs['ph'] = 1; startup_packs['tai'] = 1; + startup_packs['rwr'] = 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 e9890a74..fb691f99 100644 --- a/web/js/initbuild.js +++ b/web/js/initbuild.js @@ -45,7 +45,7 @@ $(function() { let visible = true; // Startup if (format === 'startup') { - visible = ['sg', 'su21', 'msbp', 'ms', 'ph', 'tai'].some(p => $(this).hasClass('pack-' + p)); // Hardcoded Startup Codes + visible = ['sg', 'su21', 'tai', 'rwr'].some(p => $(this).hasClass('pack-' + p)); // Hardcoded Startup Codes } // Standard else if (format === 'standard') { diff --git a/web/js/search.js b/web/js/search.js index 4dff146c..9c448be5 100755 --- a/web/js/search.js +++ b/web/js/search.js @@ -66,7 +66,6 @@ $(document).on('data.app', function() { var startup_cycles = Array(); // Hardcoded Startup Codes startup_cycles['system-gateway'] = 1; startup_cycles['system-update-2021'] = 1; - startup_cycles['borealis'] = 1; startup_cycles['liberation'] = 1; var nsg_cycles = Array(); // Hardcoded NSG Codes nsg_cycles['system-gateway'] = 1;