fix general constraint failure log parity

This commit is contained in:
2026-07-26 21:10:36 +00:00
parent 3d5fff3687
commit e90a0ba339
3 changed files with 8 additions and 2 deletions
@@ -57,7 +57,9 @@ const remainCityTrust = (): Constraint => ({
test: (ctx, view) => {
const city = ctx.cityId !== undefined ? (view.get({ kind: 'city', id: ctx.cityId }) as City | null) : null;
if (!city) return { kind: 'deny', reason: '도시 정보가 없습니다.' };
return readTrust(city) >= 100 ? { kind: 'deny', reason: '민심이 충분합니다.' } : { kind: 'allow' };
return readTrust(city) >= 100
? { kind: 'deny', reason: '주민 선정은 충분합니다.' }
: { kind: 'allow' };
},
});