From ba7676e0f6aa440bbdb6173d76945bab01b65331 Mon Sep 17 00:00:00 2001 From: hided62 Date: Wed, 5 Aug 2026 07:20:06 +0000 Subject: [PATCH] fix: order speciality assignment by general id --- hwe/sammo/Event/Action/AssignGeneralSpeciality.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/Event/Action/AssignGeneralSpeciality.php b/hwe/sammo/Event/Action/AssignGeneralSpeciality.php index 137c4974..49733851 100644 --- a/hwe/sammo/Event/Action/AssignGeneralSpeciality.php +++ b/hwe/sammo/Event/Action/AssignGeneralSpeciality.php @@ -37,7 +37,7 @@ class AssignGeneralSpeciality extends \sammo\Event\Action $month, ))); - foreach ($db->query('SELECT no,name,nation,leadership,strength,intel,aux from general where specage<=age and special=%s', GameConst::$defaultSpecialDomestic) as $general) { + foreach ($db->query('SELECT no,name,nation,leadership,strength,intel,aux from general where specage<=age and special=%s ORDER BY no ASC', GameConst::$defaultSpecialDomestic) as $general) { $generalID = $general['no']; $special = SpecialityHelper::pickSpecialDomestic( $rng, @@ -57,7 +57,7 @@ class AssignGeneralSpeciality extends \sammo\Event\Action $logger->pushGeneralHistoryLog("특기 【{$specialText}】{$josaUl} 습득"); } - foreach ($db->query('SELECT no,name,nation,leadership,strength,intel,npc,dex1,dex2,dex3,dex4,dex5,aux from general where specage2<=age and special2=%s', GameConst::$defaultSpecialWar) as $general) { + foreach ($db->query('SELECT no,name,nation,leadership,strength,intel,npc,dex1,dex2,dex3,dex4,dex5,aux from general where specage2<=age and special2=%s ORDER BY no ASC', GameConst::$defaultSpecialWar) as $general) { $generalID = $general['no']; $generalAux = Json::decode($general['aux']);