feat,refac: 남은 난수 생성값 추가 수정

- rand, mt_rand, Query rand() 쓰는 영역
- 거래장, 토너먼트는 남김
This commit is contained in:
2022-05-17 23:01:00 +09:00
parent c5ceff6fb5
commit 296a27a409
9 changed files with 63 additions and 36 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ function postUpdateMonthly(RandUtil $rng)
//약간의 랜덤치 부여 (95% ~ 105%)
$nation['power'] = Util::round($nation['power'] * (rand() % 101 + 950) / 1000);
$nation['power'] = Util::round($nation['power'] * $rng->nextRange(0.95, 1.05));
$powerValues['maxPower'] = max($powerValues['maxPower'] ?? 0, $nation['power']);
$powerValues['maxCrew'] = max($powerValues['maxCrew'] ?? 0, Util::toInt($nation['totalCrew']));