임관 제한을 하드코딩 10에서 Const로 전환

This commit is contained in:
2018-06-12 01:32:34 +09:00
parent e7f5850c31
commit ef0dec32ee
11 changed files with 54 additions and 35 deletions
+1 -1
View File
@@ -1962,7 +1962,7 @@ function updateTurntime($no) {
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$gencount = MYDB_num_rows($result);
$gennum = $gencount;
if($gencount < 10) $gencount = 10;
if($gencount < GameConst::$initialNationGenLimit) $gencount = GameConst::$initialNationGenLimit;
$query = "update nation set totaltech=tech*'$gencount',gennum='$gennum' where nation='{$general['nation']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");