임관 제한을 하드코딩 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
@@ -200,7 +200,7 @@ if($btn == "추방") {
$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;
$nation['chemi'] -= 1;
if($nation['chemi'] < 0) { $nation['chemi'] = 0; }