From 7e39be6d20f8c7de01f4188233299b565d229c72 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 2 May 2020 00:36:14 +0900 Subject: [PATCH] =?UTF-8?q?=ED=86=A0=EB=84=88=EB=A8=BC=ED=8A=B8=20?= =?UTF-8?q?=EB=AC=B4=EB=AA=85=EC=9E=A5=EC=88=98=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_tournament.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/hwe/func_tournament.php b/hwe/func_tournament.php index 7540bf8e..695f694e 100644 --- a/hwe/func_tournament.php +++ b/hwe/func_tournament.php @@ -315,6 +315,19 @@ function fillLowGenAll() { 'explevel'=>10 ]; + $dummyGeneral = [ + 'no'=>0, + 'npc'=>2, + 'name'=>'무명장수', + 'leadership'=>10, + 'strength'=>10, + 'intel'=>10, + 'lvl'=>0, + 'h'=>'None', + 'w'=>'None', + 'b'=>'None' + ]; + for($i=0;$i<8;$i++){ $grpCount[$i] = 0; } @@ -366,7 +379,11 @@ function fillLowGenAll() { foreach($grpCount as $grpIdx=>$grpCnt){ while($grpCnt < 8){ - $joinersValues[] = $dummyGeneral; + $dummyCopy = $dummyGeneral; + $dummyCopy['grp'] = $grpIdx; + $dummyCopy['grp_no'] = $grpCnt; + $grpCnt += 1; + $joinersValues[] = $dummyCopy; } }