it's 'node_0' not '0'

This commit is contained in:
fin444 2022-07-19 19:50:14 -07:00
parent 591fa29c7d
commit 84476a95bc

View file

@ -1082,6 +1082,9 @@ function generateTooltip(UI_elem, node_elem, ability, atree_map) {
let title = make_elem("b", ["scaled-font", "mx-1"], {});
title.innerHTML = ability.display_name;
switch(ability.display.icon) {
case "node_0":
// already white
break;
case "node_1":
title.classList.add("mc-gold");
break;
@ -1098,9 +1101,6 @@ function generateTooltip(UI_elem, node_elem, ability, atree_map) {
case "node_shaman":
title.classList.add("mc-green");
break;
case "0":
// already white
break;
}
container.appendChild(title);