NPC와 알림 메시지의 장수 아이콘 경로를 공통 처리

This commit is contained in:
2026-09-07 15:28:24 +00:00
parent d57fd3e553
commit d8c9a63915
11 changed files with 116 additions and 13 deletions
@@ -52,6 +52,13 @@ void describe('generalIcon', () => {
);
});
void it('resolves stored NPC message pictures like directory icons across scenarios', () => {
for (const picture of ['롤시나리오/다이애나.png', '장수/관우 1.png', '22.jpg', 'default.jpg']) {
assert.equal(resolveMessageGeneralIconUrl(picture), resolveGeneralIconUrl({ picture, imageServer: 0 }));
}
assert.equal(resolveMessageGeneralIconUrl(null), resolveGeneralIconUrl({ picture: null }));
});
void it('translates legacy message d_pic references without changing absolute or external icons', () => {
assert.equal(
resolveMessageGeneralIconUrl('d_pic/users/core2026/user name.jpg', '/gateway/api/user-icons/'),