Skip to content

Commit

Permalink
Merge pull request #671 from plural/new-startup
Browse files Browse the repository at this point in the history
Add Midnight Sun to all our startup hacks^Wsupport.
  • Loading branch information
plural authored Aug 5, 2022
2 parents bc1a021 + e0d1b5a commit 0f6b488
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/AppBundle/Service/CardsData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
2 changes: 1 addition & 1 deletion web/js/deck.v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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')]));
Expand Down
2 changes: 1 addition & 1 deletion web/js/initbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 0f6b488

Please sign in to comment.