징,모병시 민심이 떨어지지 않는 버그 수정

This commit is contained in:
2018-07-22 15:39:53 +09:00
parent 54d6347c1d
commit b8dfd1c041
+2 -2
View File
@@ -990,10 +990,10 @@ function process_11(&$general, $type) {
$general['gold'] -= $cost; $general['gold'] -= $cost;
// 주민수 감소 // 민심 감소 // 주민수 감소 // 민심 감소
if($type === '징병') { if($type === '징병') {
$city['rate'] -= Util::round($crew / $city['pop']); $city['rate'] -= Util::round(($crew / $city['pop'])*100);
} }
else { else {
$city['rate'] -= Util::round($crew / 2 / $city['pop']); $city['rate'] -= Util::round(($crew / 2 / $city['pop'])*100);
} }
if($city['rate'] < 0) { $city['rate'] = 0; } if($city['rate'] < 0) { $city['rate'] = 0; }