test mercenary recruitment boundaries

This commit is contained in:
2026-07-27 09:02:55 +00:00
parent 422ca1ee29
commit 9614ba69f6
@@ -1597,6 +1597,41 @@ const militaryPreparationBoundaryCases: MilitaryPreparationBoundaryCase[] = [
args: { crewType: 1100, amount: 100 }, args: { crewType: 1100, amount: 100 },
completed: true, completed: true,
}, },
{
name: 'mercenary recruitment rejects one gold below its doubled rounded cost',
action: 'che_모병',
args: { crewType: 1100, amount: 100 },
actorPatch: { gold: 20 },
completed: false,
},
{
name: 'mercenary recruitment accepts its exact doubled rounded gold cost',
action: 'che_모병',
args: { crewType: 1100, amount: 100 },
actorPatch: { gold: 21 },
completed: true,
},
{
name: 'mercenary recruitment rejects one rice below maintenance plus command cost',
action: 'che_모병',
args: { crewType: 1100, amount: 100 },
actorPatch: { rice: 10 },
completed: false,
},
{
name: 'mercenary recruitment accepts exact maintenance plus command cost',
action: 'che_모병',
args: { crewType: 1100, amount: 100 },
actorPatch: { rice: 11 },
completed: true,
},
{
name: 'mercenary recruitment clamps the same crew type at leadership capacity',
action: 'che_모병',
args: { crewType: 1100, amount: 99_999 },
fixturePatches: { cities: { 3: { population: 200_000 } } },
completed: true,
},
{ {
name: 'equipment trade rejects an unknown item type', name: 'equipment trade rejects an unknown item type',
action: 'che_장비매매', action: 'che_장비매매',