징,모병시 민심이 떨어지지 않는 버그 수정
This commit is contained in:
@@ -990,10 +990,10 @@ function process_11(&$general, $type) {
|
||||
$general['gold'] -= $cost;
|
||||
// 주민수 감소 // 민심 감소
|
||||
if($type === '징병') {
|
||||
$city['rate'] -= Util::round($crew / $city['pop']);
|
||||
$city['rate'] -= Util::round(($crew / $city['pop'])*100);
|
||||
}
|
||||
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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user