선전포고 추가, DisallowDiplomacyStatus 구현 변경
This commit is contained in:
@@ -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 상수화
|
||||
];
|
||||
}
|
||||
|
||||
@@ -59,7 +59,10 @@ class che_선양 extends Command\GeneralCommand{
|
||||
ConstraintHelper::BeLord(),
|
||||
ConstraintHelper::ExistsDestGeneral(),
|
||||
ConstraintHelper::FriendlyDestGeneral(),
|
||||
ConstraintHelper::DisallowDiplomacyStatus([4], '현재 통합 진행중입니다.')
|
||||
ConstraintHelper::DisallowDiplomacyStatus(
|
||||
$this->generalObj->getNationID(),
|
||||
[4 => '현재 통합 진행중입니다.']
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -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 => '불가침국입니다.']
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user