unbreakable charms fix + versioning
This commit is contained in:
parent
62d324d9e5
commit
f3b6d21a7a
6 changed files with 57 additions and 8 deletions
|
|
@ -186,15 +186,15 @@
|
|||
<div style="margin-bottom: 20px;"></div>
|
||||
|
||||
<p class="smalltext">
|
||||
v1.5.0. Work-In-Progress. Feedback: <a
|
||||
v1.6.0. Work-In-Progress. Ideas & Bug Reports: <a
|
||||
href="https://steamcommunity.com/app/367520/discussions/0/2915472677711090083/" target="_blank"><i
|
||||
class="simpleicon-steam"></i>Steam Discussions</a> <a
|
||||
href="https://steamcommunity.com/sharedfiles/filedetails/?id=2209910193" target="_blank"><i
|
||||
class="simpleicon-steam"></i>Steam Guide</a>.<br>
|
||||
Programmed, written and created by 🉑 <a href="https://github.com/ReznoRMichael/hollow-knight-completion-check"
|
||||
target="_blank">rezno[R]</a> © 2020–2021<br>
|
||||
target="_blank">rezno[R]</a> © 2020–2022<br>
|
||||
<a href="https://store.steampowered.com/app/367520/Hollow_Knight/" target="_blank">Hollow Knight</a> by <a
|
||||
href="https://teamcherry.com.au/" target="_blank">Team Cherry</a> © 2017–2021<br>
|
||||
href="https://teamcherry.com.au/" target="_blank">Team Cherry</a> © 2017–2022<br>
|
||||
</p>
|
||||
|
||||
</div> <!-- end content -->
|
||||
|
|
|
|||
|
|
@ -1643,6 +1643,32 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
|
|||
|
||||
break;
|
||||
|
||||
/* Unobtainable Unbreakable Charms after Grimm Troupe Banishment */
|
||||
case "fragileGreed_unbreakable":
|
||||
case "fragileHealth_unbreakable":
|
||||
case "fragileStrength_unbreakable":
|
||||
|
||||
/* backwards compatibility with earlier game versions */
|
||||
if (playerData.hasOwnProperty(i) === false) {
|
||||
|
||||
SetIconNone(section, i);
|
||||
dataObject[i].disabled = true;
|
||||
|
||||
} else if (playerData[i] === true) {
|
||||
SetIconGreen(section, i);
|
||||
} else {
|
||||
|
||||
/* If player doesn't have an Unbreakable Charm, and they Banished the Grimm Troupe, the entry needs to be disabled */
|
||||
if (playerData.hasOwnProperty("destroyedNightmareLantern") && playerData.destroyedNightmareLantern === true) {
|
||||
SetIconNone(section, i);
|
||||
dataObject[i].disabled = true;
|
||||
} else {
|
||||
SetIconRed(section, i);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
// backwards compatibility with earlier game versions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue