Broad packages refactor

Added macro update when using SP reset.
Refactored several packages containing general classes.
Fixed "worker" nomenclature in class methods misleadingly denoting "task".
This commit is contained in:
ronancpl
2019-09-20 22:41:19 -03:00
parent 181573dc74
commit eae6dccbc0
253 changed files with 867 additions and 538 deletions

View File

@@ -45,8 +45,13 @@ function end(mode, type, selection) {
qm.dispose();
}
} else if (status == 0) {
if (!qm.haveItem(oreArray[selection], 2)) {
qm.sendNext("What's this, you haven't got the ores. No ores no deal!");
return;
}
qm.gainItem(oreArray[selection], -2); // Take 2 ores
qm.sendNext("Then wait for awhile. I'll go and get the stuff to help you pass the test of Chief Zanumist.");
qm.sendNext("Then wait for awhile. I'll go and get the stuff to help you pass the test of Chief Zenumist.");
qm.forceCompleteQuest();
} else if (status == 1) {
qm.dispose();

View File

@@ -45,6 +45,11 @@ function end(mode, type, selection) {
qm.dispose();
}
} else if (status == 0) {
if (!qm.haveItem(oreArray[selection], 2)) { // thanks resinate for noticing a function missing here
qm.sendNext("What's this, you haven't got the ores. No ores no deal!");
return;
}
qm.gainItem(oreArray[selection], -2); // Take 2 ores
qm.sendNext("Then wait for awhile. I'll go and get the stuff to help you pass the test of Chief Alcadno.");
qm.forceCompleteQuest();