diff --git a/hwe/ts/processing/Nation/che_발령.vue b/hwe/ts/processing/Nation/che_발령.vue index 40f3d5d8..99f373da 100644 --- a/hwe/ts/processing/Nation/che_발령.vue +++ b/hwe/ts/processing/Nation/che_발령.vue @@ -142,7 +142,23 @@ const troops = procRes.troops; const selectedGeneralID = ref(generalList[0].no); function textHelpGeneral(gen: procGeneralItem): string { - const troops = !gen.troopID ? "" : `,${procRes.troops[gen.troopID].name}`; + const troops = (()=>{ + if(!gen.troopID){ + return ""; + } + + const troopInfo = procRes.troops[gen.troopID]; + if(!troopInfo){ + return ""; + } + const troopName = troopInfo.name; + + if(gen.no !== gen.troopID){ + return `,${troopName}`; + } + + return `,${troopName}`; + })(); const nameColor = getNpcColor(gen.npc); const name = nameColor ? `${gen.name}` : gen.name; return `${name} [${citiesMap.value.get(unwrap(gen.cityID))?.name}${troops}] (${gen.leadership}/${gen.strength}/${