Compare commits

...

3 Commits

Author SHA1 Message Date
Ponk
265afb6b15 Merge pull request #230 from PaperChonChon/master #patch
NPC 2040022.js is removing items even if player does not have all materials to craft it. party3_jailin.js - Map is unpassable as the top layer spears will not hit mobs
2025-07-29 10:32:18 +02:00
PaperChonChon
8e6ee6f5f3 Map is unpassable as the top layer spears will not hit mobs
Change the passing requirement to a combo of lever state
2024-04-24 02:58:52 +00:00
PaperChonChon
5791480ab6 Update 2040022.js
NPC removing items even if player does not have all materials to craft it
2024-04-24 02:50:52 +00:00
2 changed files with 5 additions and 13 deletions

View File

@@ -198,20 +198,12 @@ function action(mode, type, selection) {
} else { } else {
if (mats instanceof Array) { if (mats instanceof Array) {
for (var i = 0; complete && i < mats.length; i++) { for (var i = 0; complete && i < mats.length; i++) {
if (matQty[i] * selection == 1) { if (!cm.haveItem(mats[i], matQty[i])) {
if (!cm.haveItem(mats[i])) {
complete = false; complete = false;
}
} else {
if (!cm.haveItem(mats[i], matQty[i] * selection)) {
complete = false;
}
} }
} }
} else { } else {
if (!cm.haveItem(mats, matQty * selection)) { complete = false;
complete = false;
}
} }
} }

View File

@@ -1,4 +1,4 @@
var leverSequenceExit = false; var leverSequenceExit = true;
function enterLeverSequence(pi) { function enterLeverSequence(pi) {
var map = pi.getMap(); var map = pi.getMap();