남은 게임 화면에서 NPC 이름 접두사가 중복되지 않도록 수정

This commit is contained in:
2026-09-13 12:30:56 +00:00
parent 23f1573bfc
commit 1b07c5ffe9
6 changed files with 129 additions and 11 deletions
@@ -28,7 +28,7 @@ const emit = defineEmits<{
const nameColor = computed(() => (props.npcState !== null ? getNpcColor(props.npcState) : undefined));
const displayName = computed(() => {
const name = props.name ?? '-';
return (props.npcState ?? 0) > 0 && !/^[ⓜⓝ]/u.test(name) ? `${name}` : name;
return (props.npcState ?? 0) > 0 && !/^[ⓜⓝⓖ㉥ⓤⓞⓧ]/u.test(name) ? `${name}` : name;
});
const handleClick = () => {
@@ -51,7 +51,7 @@ const props = defineProps<{
const number = (value: number): string => value.toLocaleString('ko-KR');
const displayChiefName = (chief: NationChief | undefined): string => {
if (!chief) return '-';
return chief.npcState > 0 && !/^[ⓜⓝ]/u.test(chief.name) ? `${chief.name}` : chief.name;
return chief.npcState > 0 && !/^[ⓜⓝⓖ㉥ⓤⓞⓧ]/u.test(chief.name) ? `${chief.name}` : chief.name;
};
</script>