variable replace
This commit is contained in:
parent
0d7c546264
commit
d127e292b0
|
|
@ -183,7 +183,7 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod)
|
||||||
};
|
};
|
||||||
|
|
||||||
for(ll = 0; ll < elementOfFairy.length; ll++) {
|
for(ll = 0; ll < elementOfFairy.length; ll++) {
|
||||||
if(typeof(elements[elementOfFairy[ll]].nocheer !== "undefined")) { //if excludeRandom exists (prevent TypeError)
|
if(typeof(elements[elementOfFairy[ll]].nocheer !== "undefined")) { //if nocheer exists (prevent TypeError)
|
||||||
if(elements[elementOfFairy[ll]].nocheer) { //it it's true
|
if(elements[elementOfFairy[ll]].nocheer) { //it it's true
|
||||||
isNocheer = 1; //the whole array fairy is excluded
|
isNocheer = 1; //the whole array fairy is excluded
|
||||||
//console.log("array nyet" + elementOfFairy);
|
//console.log("array nyet" + elementOfFairy);
|
||||||
|
|
@ -205,7 +205,7 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
if(typeof(elements[elementOfFairy].nocheer !== "undefined")) { //if excludeRandom exists (prevent TypeError)
|
if(typeof(elements[elementOfFairy].nocheer !== "undefined")) { //if nocheer exists (prevent TypeError)
|
||||||
if(elements[elementOfFairy].nocheer) { //it it's true
|
if(elements[elementOfFairy].nocheer) { //it it's true
|
||||||
//console.log("nyet " + elementOfFairy);
|
//console.log("nyet " + elementOfFairy);
|
||||||
isNocheer = 1; //the fairy is excluded
|
isNocheer = 1; //the fairy is excluded
|
||||||
|
|
@ -299,8 +299,8 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod)
|
||||||
if(isAfterScriptLoading) {
|
if(isAfterScriptLoading) {
|
||||||
elements[fairyName].flippableX = true;
|
elements[fairyName].flippableX = true;
|
||||||
elementCount++; //increment for new fairy element
|
elementCount++; //increment for new fairy element
|
||||||
if (settings.cheerful && elements[element].nocheer) {
|
if (settings.cheerful && elements[fairyName].nocheer) {
|
||||||
elements[element].hidden = true;
|
elements[fairyName].hidden = true;
|
||||||
hiddenCount++;
|
hiddenCount++;
|
||||||
} else {
|
} else {
|
||||||
createElementButton(fairyName);
|
createElementButton(fairyName);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue