fix: volar error 수정
- getNPCColor 반환형
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
<NumberInputWithInfo
|
||||
title="입찰 포인트"
|
||||
:min="inheritActionCost.minSpecificUnique"
|
||||
:max="this.items.previous"
|
||||
:max="items.previous"
|
||||
v-model="specificUniqueAmount"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
>유저전투장에게 주는 금입니다. 이보다 적으면 포상합니다. <br />
|
||||
0이면 유저전투장 긴급포상 금의 2배를 기준으로 하며, 그 수치는 현재
|
||||
{{
|
||||
(calcPolicyValue("reqHumanWarUrgentGold") * 2).toLocaleString()
|
||||
(calcPolicyValue("reqHumanWarUrgentGold") as number * 2).toLocaleString()
|
||||
}}입니다.</NumberInputWithInfo
|
||||
>
|
||||
</div>
|
||||
@@ -79,7 +79,7 @@
|
||||
>유저전투장에게 주는 쌀입니다. 이보다 적으면 포상합니다. <br />
|
||||
0이면 유저전투장 긴급포상 쌀의 2배를 기준으로 하며, 그 수치는 현재
|
||||
{{
|
||||
(calcPolicyValue("reqHumanWarUrgentRice") * 2).toLocaleString()
|
||||
(calcPolicyValue("reqHumanWarUrgentRice") as number * 2).toLocaleString()
|
||||
}}입니다.</NumberInputWithInfo
|
||||
>
|
||||
</div>
|
||||
@@ -505,7 +505,7 @@ type SetterInfo = {
|
||||
};
|
||||
|
||||
declare const lastSetters: {
|
||||
polcy: SetterInfo;
|
||||
policy: SetterInfo;
|
||||
nation: SetterInfo;
|
||||
general: SetterInfo;
|
||||
};
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<div
|
||||
v-for="([endYear, endMonth], _idx) in [
|
||||
parseYearMonth(
|
||||
joinYearMonth(year, month) + nation.diplomacy.term
|
||||
joinYearMonth(year, month) + (nation.diplomacy.term??0)
|
||||
),
|
||||
]"
|
||||
:key="_idx"
|
||||
|
||||
@@ -79,7 +79,7 @@ function br2nl (text) {
|
||||
}
|
||||
*/
|
||||
|
||||
export function getNpcColor(npcType: number): 'skyblue' | 'cyan' | 'deepskyblue' | 'darkcyan' | 'mediumaquamarine' | null {
|
||||
export function getNpcColor(npcType: number): 'skyblue' | 'cyan' | 'deepskyblue' | 'darkcyan' | 'mediumaquamarine' | undefined {
|
||||
if (npcType == 6){
|
||||
return 'mediumaquamarine';
|
||||
}
|
||||
@@ -95,5 +95,5 @@ export function getNpcColor(npcType: number): 'skyblue' | 'cyan' | 'deepskyblue'
|
||||
if (npcType == 1) {
|
||||
return 'skyblue';
|
||||
}
|
||||
return null;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user