onCalcDomesticTurnScore 변경 TriggerNationType에서 숫자 id 제거

This commit is contained in:
2018-09-02 21:57:44 +09:00
parent 6fc8763895
commit 34204f6183
20 changed files with 47 additions and 57 deletions
+9 -5
View File
@@ -6,7 +6,6 @@ class General{
use LazyVarUpdater;
protected $raw = [];
protected $rawNation;
protected $logger;
@@ -14,14 +13,16 @@ class General{
protected $logActivatedSkill = [];
protected $isFinished = false;
protected $nationType;
public function __construct(array $raw, int $year, int $month){
//TODO: 밖에서 가져오도록 하면 버그 확률이 높아짐. 필요한 raw 값을 직접 구해야함.
if($raw['nation']){
$staticNation = getNationStaticInfo($raw['nation']);
setLeadershipBonus($raw, $staticNation['level']);
}
$staticNation = getNationStaticInfo($raw['nation']);
setLeadershipBonus($raw, $staticNation['level']);
$this->raw = $raw;
$this->logger = new ActionLogger(
$this->getVar('no'),
$this->getVar('nation'),
@@ -29,6 +30,9 @@ class General{
$month,
false
);
$nationTypeClass = getNationTypeClass($staticNation['type']);
$this->nationType = new $nationTypeClass;
}
protected function clearActivatedSkill(){