메인 지도 연월 툴팁에 유니크 보유 한도 표시

This commit is contained in:
2026-09-08 00:49:39 +00:00
parent d8c9a63915
commit c1fd79da19
4 changed files with 126 additions and 12 deletions
@@ -20,6 +20,7 @@ interface MapSummary {
initialLevel: number;
increaseYears: number;
};
uniqueItemLimit?: { count: number; until: { year: number; month: number } | null };
cityList: [number, number, number, number, number, number][];
nationList: [number, string, string, number][];
myCity?: number | null;
@@ -335,6 +336,11 @@ const titleTooltipLines = computed(() => {
} else {
lines.push(`기술등급 제한 : ${currentLevel}등급 (${currentLevel * limit.increaseYears + startYear}년 해제)`);
}
const uniqueLimit = props.mapData.uniqueItemLimit;
if (uniqueLimit) {
const period = uniqueLimit.until ? `${uniqueLimit.until.year}${uniqueLimit.until.month}월까지 ` : '';
lines.push(`보유 유니크 한도: ${period}${uniqueLimit.count}${uniqueLimit.until ? '' : ' (최종)'}`);
}
return lines;
});