From b463720512298da12c1d38a6da0f22c77c822b85 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Tue, 10 May 2022 23:59:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=95=84=EC=9D=B4=ED=85=9C=20=ED=8C=8C?= =?UTF-8?q?=EA=B8=B0=20=EC=8B=9C=20=ED=8C=90=EB=A7=A4=EA=B0=80=20=EC=A0=95?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/myPage.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hwe/ts/myPage.ts b/hwe/ts/myPage.ts index cd449c68..4be1f0e1 100644 --- a/hwe/ts/myPage.ts +++ b/hwe/ts/myPage.ts @@ -240,23 +240,23 @@ $(function ($) { console.log(item); const josaUl = JosaUtil.pick(item.rawName, '을'); - if (!confirm(`${item.name}${josaUl} 버리시겠습니까? (판매시 가치: ${item.cost})`)) { + if (!confirm(`${item.name}${josaUl} 버리시겠습니까? (판매시 가치: ${item.cost / 2})`)) { return; } - if(!item.isBuyable && !confirm(`이 아이템은 유니크 아이템입니다. 진짜로 ${item.name}${josaUl} 버리시겠습니까?`)){ + if (!item.isBuyable && !confirm(`이 아이템은 유니크 아이템입니다. 진짜로 ${item.name}${josaUl} 버리시겠습니까?`)) { return; } - try{ + try { await SammoAPI.General.DropItem({ itemType: type, }); alert(`${item.name}${josaUl} 버렸습니다.`); location.reload(); } - catch(e){ + catch (e) { console.error(e); alert(e); }