fix: 아이템 파기 시 판매가 정정
This commit is contained in:
+4
-4
@@ -240,23 +240,23 @@ $(function ($) {
|
|||||||
console.log(item);
|
console.log(item);
|
||||||
|
|
||||||
const josaUl = JosaUtil.pick(item.rawName, '을');
|
const josaUl = JosaUtil.pick(item.rawName, '을');
|
||||||
if (!confirm(`${item.name}${josaUl} 버리시겠습니까? (판매시 가치: ${item.cost})`)) {
|
if (!confirm(`${item.name}${josaUl} 버리시겠습니까? (판매시 가치: ${item.cost / 2})`)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!item.isBuyable && !confirm(`이 아이템은 유니크 아이템입니다. 진짜로 ${item.name}${josaUl} 버리시겠습니까?`)){
|
if (!item.isBuyable && !confirm(`이 아이템은 유니크 아이템입니다. 진짜로 ${item.name}${josaUl} 버리시겠습니까?`)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
try{
|
try {
|
||||||
await SammoAPI.General.DropItem({
|
await SammoAPI.General.DropItem({
|
||||||
itemType: type,
|
itemType: type,
|
||||||
});
|
});
|
||||||
alert(`${item.name}${josaUl} 버렸습니다.`);
|
alert(`${item.name}${josaUl} 버렸습니다.`);
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
catch(e){
|
catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
alert(e);
|
alert(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user