diff --git a/js/index.js b/js/index.js
index 00d449a..715d31f 100644
--- a/js/index.js
+++ b/js/index.js
@@ -132,6 +132,25 @@ window.addEventListener('load', () => {
if (property === "level") document.getElementById("starting-level").value = Math.max(Number(set[property]) - 1, 0)
if (property === "noPower") document.getElementById("no-power-ups").checked = Number(set[property])
}
+ } else if (localSettings.isTrainingNotAttempted && localSettings.runCount < 30) { //make training button more obvious for new players
+ // document.getElementById("training-button").style.border = "0px #333 solid";
+ // document.getElementById("training-button").style.fill = "rgb(0, 150, 235)" //"#fff";
+ // document.getElementById("training-button").style.background = "rgb(0, 200, 255)";
+
+ //css classes not working for some reason
+ // document.getElementById("training-button").classList.add('lore-text');
+
+ let myanim = document.createElementNS("http://www.w3.org/2000/svg", 'animate');
+ myanim.setAttribute("id", "myAnimation");
+ myanim.setAttribute("attributeType", "XML");
+ myanim.setAttribute("attributeName", "fill");
+ // myanim.setAttribute("values", "#f55;#cc5;#5c5;#5dd;#66f;#5dd;#5c5;#cc5;#f55"); //rainbow
+ myanim.setAttribute("values", "#5dd;#66f;#5dd");
+ // myanim.setAttribute("values", "#333;rgb(0, 170, 255);#333");
+ myanim.setAttribute("dur", "3s");
+ myanim.setAttribute("repeatCount", "indefinite");
+ document.getElementById("training-button").appendChild(myanim);
+ document.getElementById("myAnimation").beginElement();
}
});
@@ -252,25 +271,25 @@ ${simulation.isCheating ? "
lore disabled": ""}
text += `
${build.nameLink(m.fieldUpgrades[m.fieldMode].name)}
${m.fieldUpgrades[m.fieldMode].description}
`
for (let i = 0, len = tech.tech.length; i < len; i++) {
if (tech.tech[i].count > 0 && !tech.tech[i].isNonRefundable) {
- const isCount = tech.tech[i].count > 1 ? `(${tech.tech[i].count}x)` : "";
+ const techCountText = tech.tech[i].count > 1 ? `(${tech.tech[i].count}x)` : "";
if (tech.tech[i].isFieldTech) {
text += `
- ${tech.tech[i].link} ${isCount}
${tech.tech[i].descriptionFunction ? tech.tech[i].descriptionFunction() :tech.tech[i].description}
`
+ ${tech.tech[i].link} ${techCountText}