small change with code

This commit is contained in:
ReznoRMichael 2021-07-28 20:55:27 +02:00
parent 66e098051a
commit 7ab7923886
3 changed files with 12 additions and 3 deletions

View file

@ -1061,7 +1061,12 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
// textPrefix += ": " + Math.abs(playerData[i]); // textPrefix += ": " + Math.abs(playerData[i]);
amount = Math.abs(playerData[i]); amount = Math.abs(playerData[i]);
dataObject[i].amount = amount; dataObject[i].amount = amount;
i === "geoPool" && playerData[i] > 0 ? CurrentDataPartial(section, i) : CurrentDataBlank(section, i);
if (amount > 0 && i == "geoPool") {
CurrentDataPartial(section, i);
} else {
CurrentDataBlank(section, i);
}
if (i === "jinnEggsSold") { if (i === "jinnEggsSold") {
// fade out if not on Steel Soul // fade out if not on Steel Soul

File diff suppressed because one or more lines are too long

View file

@ -1178,7 +1178,11 @@ function CheckAdditionalThings(section, dataObject, playerData, worldData, scene
dataObject[i].amount = amount; dataObject[i].amount = amount;
(i === "geoPool" && playerData[i] > 0) ? CurrentDataPartial(section, i): CurrentDataBlank(section, i); if (amount > 0 && i == "geoPool") {
CurrentDataPartial(section, i);
} else {
CurrentDataBlank(section, i);
}
if (i === "jinnEggsSold") { if (i === "jinnEggsSold") {
// fade out if not on Steel Soul // fade out if not on Steel Soul