황제가 있을 경우 황제. 없으면 이전 천통 군주의 명으로 토너먼트 개최

This commit is contained in:
2019-03-06 01:44:24 +09:00
parent 363278089d
commit 3a48483700
2 changed files with 22 additions and 5 deletions
+4 -1
View File
@@ -164,6 +164,8 @@ class ResetHelper{
'plock'=>1
]);
$prevWinner = $db->queryFirstField('SELECT l12name FROM emperior ORDER BY `no` DESC LIMIT 1');
CityConst::build();
$cityPositions = [];
foreach(CityConst::all() as $city){
@@ -235,7 +237,8 @@ class ResetHelper{
'npcmode'=>$npcmode,
'extended_general'=>$extend,
'fiction'=>$fiction,
'tnmt_trig'=>$tournament_trig
'tnmt_trig'=>$tournament_trig,
'prev_winner'=>$prevWinner
];
foreach(RootDB::db()->query('SELECT `no`, `name`, `picture`, `imgsvr` FROM member WHERE grade >= 5') as $admin){