From 47fb00ad61ac33a728f673c25073f55213f4a64e Mon Sep 17 00:00:00 2001 From: Sam Tubbax Date: Tue, 30 Dec 2025 13:51:32 +0100 Subject: [PATCH] Add name of legendary planet to popup in slice info --- app/Draft/Slice.php | 2 +- js/main.js | 25 +++++-------------------- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/app/Draft/Slice.php b/app/Draft/Slice.php index c80c95c..32183a1 100644 --- a/app/Draft/Slice.php +++ b/app/Draft/Slice.php @@ -55,7 +55,7 @@ function __construct( $this->specialties[] = $spec; } if ($planet->legendary) { - $this->legendaryPlanets[] = $planet->legendary; + $this->legendaryPlanets[] = $planet->name . ': ' . $planet->legendary; } } } diff --git a/js/main.js b/js/main.js index f2330ab..cf54d01 100644 --- a/js/main.js +++ b/js/main.js @@ -3,34 +3,19 @@ let alliance_mode = false; const EDITIONS = { BASEGAME: { - id: 'BaseGame', - maxFactions: 17, - maxSlices: 5, - maxLegendaries: 0, + id: 'BaseGame' }, POK: { - id: 'PoK', - maxFactions: 7, - maxSlices: 4, - maxLegendaries: 2, + id: 'PoK' }, TE: { - id: 'TE', - maxFactions: 7, - maxSlices: 3, - maxLegendaries: 5 + id: 'TE' }, DS: { - id: 'DS', - maxFactions: 24, - maxSlices: 0, - maxLegendaries: 0 + id: 'DS' }, DSPLUS: { - id: 'DSPlus', - maxFactions: 10, - maxSlices: 1, - maxLegendaries: 5 + id: 'DSPlus' }, };