feat(game-ui): 세력일람에 총 병사를 표시

This commit is contained in:
2026-08-29 03:30:55 +00:00
parent 26952fcdc7
commit 20a2812d65
4 changed files with 26 additions and 1 deletions
@@ -96,6 +96,7 @@ export const getNationDirectory = authedProcedure.query(async ({ ctx }) => {
npcState: true,
nationId: true,
cityId: true,
crew: true,
dedication: true,
officerLevel: true,
meta: true,
@@ -182,6 +183,7 @@ export const getNationDirectory = authedProcedure.query(async ({ ctx }) => {
capitalCityId: nation.capitalCityId ?? 0,
rulerCityName: ruler ? (cityNameById.get(ruler.cityId) ?? null) : null,
generalCount: readMetaNumber(nation.meta, 'gennum', nationGenerals.length),
totalCrew: nationGenerals.reduce((sum, general) => sum + general.crew, 0),
cityCount: nationCities.length,
officers,
ambassadorNames: secretPermissions