감축 조건 변경, 증/감축시 변화량을 지정가능하도록 변경

This commit is contained in:
2019-10-03 15:12:25 +09:00
parent de1fa34922
commit 78ff016def
3 changed files with 44 additions and 15 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ function popIncrease() {
$ratio *= (1 - $city['secu']/$city['secu2']/10); //치안에 따라 최대 10% 경감
}
$pop = $city['pop'] + (int)($city['pop'] * $ratio) + 5000; // 기본 5000명은 증가
$pop = $city['pop'] + (int)($city['pop'] * $ratio) + GameConst::$basePopIncreaseAmount; // 기본인구는 증가
$ratio = round($ratio*100, 2);
$cityrate = $city['rate'];