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

This commit is contained in:
Hide_D committed 2022-05-17 23:28:31 +09:00
1 parent 8665838472
commit b22987f21b
5 files changed
+7 -9

No files matched your search

+1 -2
View File
@@ -10,9 +10,8 @@ class WarUnitGeneral extends WarUnit
protected $killedPerson = 0;
protected $deadPerson = 0;
function __construct(RandUtil $rng, General $general, array $rawNation, bool $isAttacker)
function __construct(public readonly RandUtil $rng, General $general, array $rawNation, bool $isAttacker)
{
$this->rng = $rng;
$this->general = $general;
$this->raw = $general->getRaw();
$this->rawNation = $rawNation; //read-only