CheckMrMushroomState() initial
This commit is contained in:
parent
393ab861ce
commit
f8099abfa2
1 changed files with 19 additions and 0 deletions
|
|
@ -925,6 +925,9 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
case "zoteDead":
|
case "zoteDead":
|
||||||
case "nailsmithSpared":
|
case "nailsmithSpared":
|
||||||
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataBlank();
|
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataBlank();
|
||||||
|
break;
|
||||||
|
case "mrMushroomState":
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
|
(playerData[i] === true) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
|
|
@ -934,6 +937,22 @@ function CheckAdditionalThings(divId, dataObject, playerData, worldData, sceneDa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function CheckMrMushroomState(divId, dataObject, mrMushroomState = 0) {
|
||||||
|
|
||||||
|
if (mrMushroomState > 1) {
|
||||||
|
for (let i = 1; i <= 7; i++) {
|
||||||
|
(mrMushroomState > i) ? CurrentDataTrue(): CurrentDataFalse();
|
||||||
|
FillHTML(divId, `${dataObject.name} #${i}`, dataObject["spoiler" + i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
CurrentDataFalse();
|
||||||
|
for (let i = 1; i <= 7; i++) {
|
||||||
|
FillHTML(divId, `${dataObject.name} #${i}`, dataObject["spoiler" + i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks, validates and shows hints to the player depending on their save progression, in chronological order. Shows only hint for the last uncompleted event. If Hollow Knight is defeated, shows a dummy text.
|
* Checks, validates and shows hints to the player depending on their save progression, in chronological order. Shows only hint for the last uncompleted event. If Hollow Knight is defeated, shows a dummy text.
|
||||||
* @param {object} divId object containing div hints ID and h2 title
|
* @param {object} divId object containing div hints ID and h2 title
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue