Unexpirable diseases & Holy Symbol patch
Fixed diseases becoming unexpirable after trying to change channels or entering the Cash Shop. Fixed Holy Symbol acting oddly in solo scenario. Adjusted Summon Sack lv. 9, that would try to spawn mobs with inexistent id on the field.
This commit is contained in:
@@ -77,8 +77,8 @@ var questionTree = [
|
||||
var status;
|
||||
var question;
|
||||
|
||||
var unusedQuestions;
|
||||
var unusedQuestionsCursor;
|
||||
var questionPool;
|
||||
var questionPoolCursor;
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
@@ -105,8 +105,6 @@ function action(mode, type, selection) {
|
||||
cm.sendNext("Have a free ETC slot available before accepting this trial.");
|
||||
cm.dispose();
|
||||
} else {
|
||||
instantiateUnusedQuestions();
|
||||
|
||||
cm.sendNext("Alright... I'll be testing out your wisdom here. Answer all the questions correctly, and you will pass the test BUT, if you even lie to me once, then you'll have to start over again ok, here we go.");
|
||||
}
|
||||
} else {
|
||||
@@ -118,6 +116,7 @@ function action(mode, type, selection) {
|
||||
}
|
||||
} else if(status == 1) {
|
||||
cm.gainItem(4005004, -1);
|
||||
instantiateQuestionPool();
|
||||
|
||||
question = fetchNextQuestion();
|
||||
var questionHead = generateQuestionHeading();
|
||||
@@ -172,25 +171,25 @@ function shuffleArray(array) {
|
||||
}
|
||||
}
|
||||
|
||||
function instantiateUnusedQuestions() {
|
||||
unusedQuestions = [];
|
||||
function instantiateQuestionPool() {
|
||||
questionPool = [];
|
||||
|
||||
for(var i = 0; i < questionTree.length; i++) {
|
||||
unusedQuestions.push(i);
|
||||
questionPool.push(i);
|
||||
}
|
||||
|
||||
shuffleArray(unusedQuestions);
|
||||
unusedQuestionsCursor = 0;
|
||||
shuffleArray(questionPool);
|
||||
questionPoolCursor = 0;
|
||||
}
|
||||
|
||||
function fetchNextQuestion() {
|
||||
var next = unusedQuestions[unusedQuestionsCursor];
|
||||
unusedQuestionsCursor++;
|
||||
var next = questionPool[questionPoolCursor];
|
||||
questionPoolCursor++;
|
||||
|
||||
return next;
|
||||
}
|
||||
|
||||
function generateSelectionMenu(array) { // nice tool for generating a string for the sendSimple functionality
|
||||
function generateSelectionMenu(array) {
|
||||
var menu = "";
|
||||
for (var i = 0; i < array.length; i++) {
|
||||
menu += "#L" + i + "#" + array[i] + "#l\r\n";
|
||||
|
||||
@@ -45,11 +45,11 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 1 && selection == 0) {
|
||||
if (cm.haveItem(4031592, 1)/* && cm.isMarried()==1*/) {
|
||||
if (cm.haveItem(4031592, 1)) {
|
||||
cm.sendYesNo("So you would like to enter the #bEntrance#k?");
|
||||
MySelection = selection;
|
||||
} else {
|
||||
cm.sendOk("You must have an Entrance Ticket to enter, and you have to be married.");
|
||||
cm.sendOk("You must have an Entrance Ticket to enter.");
|
||||
cm.dispose();
|
||||
}
|
||||
} else if (status == 1 && selection == 1) {
|
||||
|
||||
Reference in New Issue
Block a user