거병 추가

This commit is contained in:
2018-11-06 02:50:25 +09:00
parent 5a56be8a75
commit 944931f7d1
4 changed files with 172 additions and 200 deletions
+5 -15
View File
@@ -43,6 +43,10 @@ class che_건국 extends Command\GeneralCommand{
return false;
}
if(!key_exists($colorType, GetNationColors())){
return false;
}
try{
$nationTypeClass = getNationTypeClass($nationType);
}
@@ -71,25 +75,11 @@ class che_건국 extends Command\GeneralCommand{
$this->setCity();
$this->setNation();
$destGeneralID = $this->arg['destGeneralID']??null;
$destNationID = $this->arg['destNationID']??null;
if($destGeneralID !== null){
$this->setDestGeneral($destGeneralID);
$this->setDestNation($this->destGeneralObj->getVar('nation'));
}
else{
$this->setDestNation($destNationID, ['gennum', 'scout']);
}
if(!key_exists($colorType, GetNationColors())){
return false;
}
$relYear = $env['year'] - $env['startyear'];
$this->runnableConstraints=[
['ReqNationValue', 'gennum', '수하 장수', '>=', 2],
['BeOpeningPart'],
['BeOpeningPart', $relYear],
['WanderingNation'],
['CheckNationNameDuplicate', $nationName],
['BeLord'],