선전포고 추가, DisallowDiplomacyStatus 구현 변경

This commit is contained in:
2018-11-22 02:13:23 +09:00
parent 58eb6d4210
commit 36093eccaf
8 changed files with 271 additions and 27 deletions
+8 -1
View File
@@ -44,7 +44,14 @@ class che_방랑 extends Command\GeneralCommand{
ConstraintHelper::BeLord(),
ConstraintHelper::NotWanderingNation(),
ConstraintHelper::NotOpeningPart($relYear),
ConstraintHelper::DisallowDiplomacyStatus([0, 1, 3, 4, 5, 6], '방랑할 수 없는 외교상태입니다.'),
ConstraintHelper::DisallowDiplomacyStatus($this->generalObj->getNationID(), [
0 => '방랑할 수 없는 외교상태입니다.',
1 => '방랑할 수 없는 외교상태입니다.',
3 => '방랑할 수 없는 외교상태입니다.',
4 => '방랑할 수 없는 외교상태입니다.',
5 => '방랑할 수 없는 외교상태입니다.',
6 => '방랑할 수 없는 외교상태입니다.'
]),
//TODO:diplomacy status 상수화
];
}
+4 -1
View File
@@ -59,7 +59,10 @@ class che_선양 extends Command\GeneralCommand{
ConstraintHelper::BeLord(),
ConstraintHelper::ExistsDestGeneral(),
ConstraintHelper::FriendlyDestGeneral(),
ConstraintHelper::DisallowDiplomacyStatus([4], '현재 통합 진행중입니다.')
ConstraintHelper::DisallowDiplomacyStatus(
$this->generalObj->getNationID(),
[4 => '현재 통합 진행중입니다.']
)
];
}
+4 -1
View File
@@ -116,7 +116,10 @@ class che_화계 extends Command\GeneralCommand{
ConstraintHelper::NotNeutralDestCity(),
ConstraintHelper::ReqGeneralGold($reqGold),
ConstraintHelper::ReqGeneralRice($reqRice),
ConstraintHelper::DisallowDiplomacyStatus([7], '불가침국입니다.'),
ConstraintHelper::DisallowDiplomacyStatus(
$this->generalObj->getNationID(),
[7 => '불가침국입니다.']
),
];
}