민심 깎이는 로그에 반올림 적용
This commit is contained in:
@@ -668,7 +668,11 @@ function process_35(&$general) {
|
|||||||
|
|
||||||
// 선동 최대 10
|
// 선동 최대 10
|
||||||
$secuAmount = Util::valueFit(Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax), null, $destCity['secu']);
|
$secuAmount = Util::valueFit(Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax), null, $destCity['secu']);
|
||||||
$rateAmount = Util::valueFit(Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax) / 50, null, $destCity['rate']);
|
$rateAmount = Util::valueFit(
|
||||||
|
Util::round(Util::randRangeInt(GameConst::$sabotageDamageMin, GameConst::$sabotageDamageMax) / 50),
|
||||||
|
null,
|
||||||
|
$destCity['rate']
|
||||||
|
);
|
||||||
$destCity['secu'] -= $secuAmount;
|
$destCity['secu'] -= $secuAmount;
|
||||||
$destCity['rate'] -= $rateAmount;
|
$destCity['rate'] -= $rateAmount;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user