colon and space in single place

This commit is contained in:
ReznoRMichael 2020-08-22 21:06:01 +02:00
parent 9078fa6115
commit 5681a9414d

View file

@ -18,9 +18,12 @@ var STRONG_START = "<strong>"
var STRONG_END = "</strong>" var STRONG_END = "</strong>"
var HK_BOSSES = { var HK_BOSSES = {
mawlekDefeated: "Brooding Mawlek: ", mawlekDefeated: "Brooding Mawlek",
giantBuzzerDefeated: "Gruz Mother: ", giantBuzzerDefeated: "Gruz Mother",
collectorDefeated: "The Collector: " collectorDefeated: "The Collector",
defeatedMegaJelly: "Uumuu",
killedMimicSpider: "Nosk",
killedTraitorLord: "Traitor Lord"
}; };
function HKCheckCompletion(jsonObject) { function HKCheckCompletion(jsonObject) {
@ -42,7 +45,7 @@ function HKCheckCompletion(jsonObject) {
if (i === "completionPercentage") { if (i === "completionPercentage") {
if (HKPlayerData.completionPercentage >= 112) currentDataTrue(); if (HKPlayerData.completionPercentage >= 112) currentDataTrue();
else currentDataFalse(HKPlayerData.completionPercentage); else currentDataFalse(HKPlayerData.completionPercentage);
fillHTML(divId, "Hollow Knight Completion: ", " %"); fillHTML(divId, "Hollow Knight Completion", " %");
} }
// ---------------- Bosses (Base Game) --------------------- // // ---------------- Bosses (Base Game) --------------------- //
@ -59,7 +62,7 @@ function HKCheckCompletion(jsonObject) {
} }
function fillHTML(divId = "", textPrefix = "Unknown Completion Element: ", textSuffix = "") { function fillHTML(divId = "", textPrefix = "Unknown Completion Element: ", textSuffix = "") {
document.getElementById(divId).innerHTML += DIV_START + COMPLETED_CHECK + STRONG_START + textPrefix + STRONG_END + CURRENT_DATA + textSuffix + DIV_END; document.getElementById(divId).innerHTML += DIV_START + COMPLETED_CHECK + STRONG_START + textPrefix + ": " + STRONG_END + CURRENT_DATA + textSuffix + DIV_END;
} }
function currentDataTrue(textData = COMPLETED) { function currentDataTrue(textData = COMPLETED) {