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

This commit is contained in:
2019-04-21 02:30:12 +09:00
parent 26420719f3
commit 93b33ba383
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']}'";
+2
View File
@@ -71,6 +71,8 @@ class GameConstBase
public static $exchangeFee = 0.01;
/** @var float 성인 연령 */
public static $adultAge = 14;
/** @var float 명전 등록 가능 연령 */
public static $minPushHallAge = 40;
/** @var int 최대 계급 */
public static $maxDedLevel = 30;
/** @var int 최대 기술 레벨 */