frontend: 기술 제한 표기 수정

This commit is contained in:
2025-06-25 14:16:19 +00:00
parent 63cc5d8e88
commit f183dcc72b
4 changed files with 17 additions and 10 deletions
+5 -2
View File
@@ -124,9 +124,12 @@ watch(
(nation) => {
const { startyear, year } = global.value;
console.log(gameConstStore);
maxTechLevel.value = getMaxRelativeTechLevel(startyear, year, gameConstStore.value.gameConst.maxTechLevel);
const initialAllowedTechLevel = gameConstStore.value.gameConst.initialAllowedTechLevel;
const techLevelIncYear = gameConstStore.value.gameConst.techLevelIncYear;
maxTechLevel.value = getMaxRelativeTechLevel(startyear, year, gameConstStore.value.gameConst.maxTechLevel, initialAllowedTechLevel, techLevelIncYear);
currentTechLevel.value = convTechLevel(nation.tech, maxTechLevel.value);
onTechLimit.value = isTechLimited(startyear, year, nation.tech, gameConstStore.value.gameConst.maxTechLevel);
onTechLimit.value = isTechLimited(startyear, year, nation.tech, gameConstStore.value.gameConst.maxTechLevel, initialAllowedTechLevel, techLevelIncYear);
},
{ immediate: true }
);