diff --git a/scripts/npc/2040022.js b/scripts/npc/2040022.js index f33665c8f1..b76610d4b8 100644 --- a/scripts/npc/2040022.js +++ b/scripts/npc/2040022.js @@ -198,20 +198,12 @@ function action(mode, type, selection) { } else { if (mats instanceof Array) { for (var i = 0; complete && i < mats.length; i++) { - if (matQty[i] * selection == 1) { - if (!cm.haveItem(mats[i])) { + if (!cm.haveItem(mats[i], matQty[i])) { complete = false; - } - } else { - if (!cm.haveItem(mats[i], matQty[i] * selection)) { - complete = false; - } } } } else { - if (!cm.haveItem(mats, matQty * selection)) { - complete = false; - } + complete = false; } } @@ -250,4 +242,4 @@ function action(mode, type, selection) { } cm.dispose(); } -} \ No newline at end of file +}