fix: 진행 중 $rng 호출 관련 버그 수정
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user