From 4b663406993cf8adaf5cb6ddd4abeca35c061cf5 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Sun, 11 Feb 2024 13:16:54 -0500 Subject: [PATCH] Update survival.js --- mods/survival.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/survival.js b/mods/survival.js index 6ff7e339..e7010657 100644 --- a/mods/survival.js +++ b/mods/survival.js @@ -313,6 +313,7 @@ window.addEventListener("load",function(){ var pricesDiv = document.getElementById("category-prices"); pricesDiv.style.display = "none"; for (var element in elementWorth) { + if (elementWorth[element] <= 0) { continue } var name = (elements[element].name||element).replace(/_/g, " ").replace("."," ").replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}).replace(" ","."); // create text with the name of the element and its worth, separated by • var text = name+"="+elementWorth[element] + " • ";