display proper current hint
This commit is contained in:
parent
63a386a42a
commit
cce9d458e5
4 changed files with 27 additions and 15 deletions
20
build/app.js
20
build/app.js
|
|
@ -1200,17 +1200,20 @@ function CheckHintsTrue(section, dataObject, playerData, worldData) {
|
||||||
// a text to show when player already finished their first playthrough (killed Hollow Knight first time)
|
// a text to show when player already finished their first playthrough (killed Hollow Knight first time)
|
||||||
|
|
||||||
/* AppendHTML(section, "...a successful Knight who doesn't need hints anymore. The Knight explores the world of Hallownest patiently in constant search of its remaining secrets..."); */
|
/* AppendHTML(section, "...a successful Knight who doesn't need hints anymore. The Knight explores the world of Hallownest patiently in constant search of its remaining secrets..."); */
|
||||||
|
section.current = "endOfHints";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i in dataObject) {
|
for (var i in dataObject) {
|
||||||
if (playerData[i] === true) {
|
if (i === "endOfHints") {
|
||||||
|
break;
|
||||||
|
} else if (playerData[i] === true) {
|
||||||
continue;
|
continue;
|
||||||
} else if (i === "fireballLevel") {
|
} else if (i === "fireballLevel") {
|
||||||
if (playerData[i] >= 1) {
|
if (playerData[i] >= 1) {
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (i === "Crossroads_04") {
|
} else if (i === "Crossroads_04") {
|
||||||
|
|
@ -1226,7 +1229,7 @@ function CheckHintsTrue(section, dataObject, playerData, worldData) {
|
||||||
if (GruzMotherDefeated) {
|
if (GruzMotherDefeated) {
|
||||||
continue; // next dataObject (i)
|
continue; // next dataObject (i)
|
||||||
} else {
|
} else {
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (i === "dungDefenderOrHornet2") {
|
} else if (i === "dungDefenderOrHornet2") {
|
||||||
|
|
@ -1236,7 +1239,7 @@ function CheckHintsTrue(section, dataObject, playerData, worldData) {
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
// if no Dung Defender or Hornet 2
|
// if no Dung Defender or Hornet 2
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (i === "ismaTearOrShadeCloak") {
|
} else if (i === "ismaTearOrShadeCloak") {
|
||||||
|
|
@ -1247,17 +1250,17 @@ function CheckHintsTrue(section, dataObject, playerData, worldData) {
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
// if Kings Brand but no Shade Cloak
|
// if Kings Brand but no Shade Cloak
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// if no Isma's Tear or Kings Brand
|
// if no Isma's Tear or Kings Brand
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// if anything from the hints list is not done
|
// if anything from the hints list is not done
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} // end: for (let i in dataObject)
|
} // end: for (let i in dataObject)
|
||||||
|
|
@ -2627,6 +2630,9 @@ var HK = {
|
||||||
},
|
},
|
||||||
killedHollowKnight: {
|
killedHollowKnight: {
|
||||||
spoiler: "...a disturbance inside a black temple"
|
spoiler: "...a disturbance inside a black temple"
|
||||||
|
},
|
||||||
|
endOfHints: {
|
||||||
|
spoiler: "...a successful Knight who doesn't need hints anymore. The Knight explores the world of Hallownest patiently in constant search of its remaining secrets..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1264,17 +1264,20 @@ function CheckHintsTrue(section, dataObject, playerData, worldData) {
|
||||||
if (playerData.killedHollowKnight === true) {
|
if (playerData.killedHollowKnight === true) {
|
||||||
// a text to show when player already finished their first playthrough (killed Hollow Knight first time)
|
// a text to show when player already finished their first playthrough (killed Hollow Knight first time)
|
||||||
/* AppendHTML(section, "...a successful Knight who doesn't need hints anymore. The Knight explores the world of Hallownest patiently in constant search of its remaining secrets..."); */
|
/* AppendHTML(section, "...a successful Knight who doesn't need hints anymore. The Knight explores the world of Hallownest patiently in constant search of its remaining secrets..."); */
|
||||||
|
section.current = "endOfHints";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i in dataObject) {
|
for (let i in dataObject) {
|
||||||
if (playerData[i] === true) {
|
if (i === "endOfHints") {
|
||||||
|
break;
|
||||||
|
} else if (playerData[i] === true) {
|
||||||
continue;
|
continue;
|
||||||
} else if (i === "fireballLevel") {
|
} else if (i === "fireballLevel") {
|
||||||
if (playerData[i] >= 1) {
|
if (playerData[i] >= 1) {
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (i === "Crossroads_04") {
|
} else if (i === "Crossroads_04") {
|
||||||
|
|
@ -1289,7 +1292,7 @@ function CheckHintsTrue(section, dataObject, playerData, worldData) {
|
||||||
if (GruzMotherDefeated) {
|
if (GruzMotherDefeated) {
|
||||||
continue; // next dataObject (i)
|
continue; // next dataObject (i)
|
||||||
} else {
|
} else {
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (i === "dungDefenderOrHornet2") {
|
} else if (i === "dungDefenderOrHornet2") {
|
||||||
|
|
@ -1298,7 +1301,7 @@ function CheckHintsTrue(section, dataObject, playerData, worldData) {
|
||||||
} else if (playerData.hornetOutskirtsDefeated === true) {
|
} else if (playerData.hornetOutskirtsDefeated === true) {
|
||||||
continue;
|
continue;
|
||||||
} else { // if no Dung Defender or Hornet 2
|
} else { // if no Dung Defender or Hornet 2
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (i === "ismaTearOrShadeCloak") {
|
} else if (i === "ismaTearOrShadeCloak") {
|
||||||
|
|
@ -1308,15 +1311,15 @@ function CheckHintsTrue(section, dataObject, playerData, worldData) {
|
||||||
if (playerData.hasShadowDash === true) {
|
if (playerData.hasShadowDash === true) {
|
||||||
continue;
|
continue;
|
||||||
} else { // if Kings Brand but no Shade Cloak
|
} else { // if Kings Brand but no Shade Cloak
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else { // if no Isma's Tear or Kings Brand
|
} else { // if no Isma's Tear or Kings Brand
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else { // if anything from the hints list is not done
|
} else { // if anything from the hints list is not done
|
||||||
sFillText += PrepareHTMLString(section, "", dataObject[i].spoiler);
|
section.current = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} // end: for (let i in dataObject)
|
} // end: for (let i in dataObject)
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,9 @@ const HK = {
|
||||||
killedHollowKnight: {
|
killedHollowKnight: {
|
||||||
spoiler: "...a disturbance inside a black temple"
|
spoiler: "...a disturbance inside a black temple"
|
||||||
},
|
},
|
||||||
|
endOfHints: {
|
||||||
|
spoiler: "...a successful Knight who doesn't need hints anymore. The Knight explores the world of Hallownest patiently in constant search of its remaining secrets..."
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue