Update survival.js

This commit is contained in:
slweeb 2024-02-11 13:16:54 -05:00
parent 0440d37a21
commit 4b66340699
1 changed files with 1 additions and 0 deletions

View File

@ -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] + " • ";