feat: 새로운 제약 조건 추가 및 기존 제약 조건 개선

This commit is contained in:
2026-02-06 19:06:38 +00:00
parent 15730feafe
commit a30bc93d10
6 changed files with 165 additions and 138 deletions
@@ -92,6 +92,11 @@ export const disallowDiplomacyBetweenStatus = (disallowList: Record<number, stri
},
});
export const disallowDiplomacyStatus = (disallowList: Record<number, string>): Constraint => ({
...disallowDiplomacyBetweenStatus(disallowList),
name: 'disallowDiplomacyStatus',
});
export const allowDiplomacyBetweenStatus = (allowList: number[], reason: string): Constraint => ({
name: 'allowDiplomacyBetweenStatus',
requires: (ctx) => {