From ca2e7cb5d49181cb1ee32d0f6cf21f3feee987af Mon Sep 17 00:00:00 2001 From: Wotuu Date: Wed, 13 Nov 2024 09:25:31 +0100 Subject: [PATCH] #2610 If routes have their levels set to null, they now default to the default --- app/Logic/MapContext/DungeonRouteProperties.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Logic/MapContext/DungeonRouteProperties.php b/app/Logic/MapContext/DungeonRouteProperties.php index a045f14cf..2c51c4035 100644 --- a/app/Logic/MapContext/DungeonRouteProperties.php +++ b/app/Logic/MapContext/DungeonRouteProperties.php @@ -57,8 +57,8 @@ private function getDungeonRouteProperties(CoordinatesServiceInterface $coordina 'pullGradientApplyAlways' => $dungeonRoute->pull_gradient_apply_always, 'faction' => $dungeonRoute->faction->key, 'enemyForces' => $dungeonRoute->enemy_forces, - 'levelMin' => $dungeonRoute->level_min, - 'levelMax' => $dungeonRoute->level_max, + 'levelMin' => $dungeonRoute->level_min ?? config('keystoneguru.keystone.levels.default_min'), + 'levelMax' => $dungeonRoute->level_max ?? config('keystoneguru.keystone.levels.default_max'), 'dungeonDifficulty' => $dungeonRoute->dungeon_difficulty, 'mappingVersionUpgradeUrl' => route('dungeonroute.upgrade', [