fix: 진행 중 $rng 호출 관련 버그 수정

This commit was merged in pull request #219.
This commit is contained in:
Hide_D committed 2022-05-17 23:28:31 +09:00
1 parent 9efe7ba171
commit 07f2042d42
5 files changed
+7 -9

No files matched your search

+1 -2
View File
@@ -8,8 +8,7 @@ class WarUnitCity extends WarUnit{
protected $cityRate;
function __construct(RandUtil $rng, $raw, $rawNation, int $year, int $month, $cityRate){
$this->rng = $rng;
function __construct(public readonly RandUtil $rng, $raw, $rawNation, int $year, int $month, $cityRate){
$general = new DummyGeneral(false);
$general->setVar('city', $raw['city']);
$general->setVar('nation', $raw['nation']);