diff --git a/hwe/b_betting.php b/hwe/b_betting.php index bbf065df..44ab71da 100644 --- a/hwe/b_betting.php +++ b/hwe/b_betting.php @@ -38,25 +38,25 @@ if ($con >= 2) { switch ($admin['tnmt_type']) { default: throw new \RuntimeException('Invalid tnmt_type'); - case 0: + case convertTournamentType('전력전'): $tnmt_type = "전력전"; $tp = "total"; $tp2 = "종합"; $tp3 = "total"; break; - case 1: + case convertTournamentType('통솔전'): $tnmt_type = "통솔전"; $tp = "leadership"; $tp2 = "통솔"; $tp3 = "leadership"; break; - case 2: + case convertTournamentType('일기토'): $tnmt_type = "일기토"; $tp = "strength"; $tp2 = "무력"; $tp3 = "strength"; break; - case 3: + case convertTournamentType('설전'): $tnmt_type = "설전"; $tp = "intel"; $tp2 = "지력"; @@ -273,7 +273,7 @@ if ($str3) { for ($i = 0; $i < 8; $i++) { $cent[$i] = ""; } - $generalList = $db->query('SELECT npc,name,win from tournament where grp>=20 order by grp, grp_no LIMIT 16'); + $generalList = $db->query('SELECT npc,name,win,leadership,strength,intel,leadership+strength+intel as total from tournament where grp>=20 order by grp, grp_no LIMIT 16'); while (count($generalList) < 16) { $generalList[] = [ 'name' => '-', @@ -293,6 +293,7 @@ if ($str3) { $line[$i] = ""; } $gen[$i] = $general['name']; + $stat[$i] = $general[$tp]; } for ($i = 0; $i < 8; $i++) { $cent[$i] = $cent[$i] . "┻" . ""; @@ -300,40 +301,43 @@ if ($str3) { $line[$i * 2 + 1] = $line[$i * 2 + 1] . "━━┓" . ""; echo "