천통시 최소 명전 등록 가능 연도를 GameConst로

This commit is contained in:
2019-04-21 02:30:12 +09:00
parent e6e0a4bd7d
commit 71ce5c4dcb
2 changed files with 4 additions and 7 deletions
+2 -7
View File
@@ -1363,13 +1363,8 @@ function checkEmperior() {
$gameStor->isunited = 2;
$gameStor->conlimit = $gameStor->conlimit*100;
$query = "select no from general where npc<2 and age>=40";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$count = MYDB_num_rows($result);
for($i=0; $i < $count; $i++) {
$general = MYDB_fetch_array($result);
CheckHall($general['no']);
foreach($db->queryFirstColumn('SELECT no FROM general WHERE npc<2 AND age>=%i', GameConst::$minPushHallAge) as $hallGeneralNo){
CheckHall($hallGeneralNo);
}
$query = "select nation,name,type,color,gold,rice,power,gennum from nation where nation='{$nation['nation']}'";