토너먼트 무명장수 코드 수정

This commit is contained in:
2020-05-02 00:36:14 +09:00
parent 979afdbf7b
commit 7e39be6d20
+18 -1
View File
@@ -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;
}
}