it's 'node_0' not '0'
This commit is contained in:
parent
591fa29c7d
commit
84476a95bc
1 changed files with 3 additions and 3 deletions
|
@ -1082,6 +1082,9 @@ function generateTooltip(UI_elem, node_elem, ability, atree_map) {
|
||||||
let title = make_elem("b", ["scaled-font", "mx-1"], {});
|
let title = make_elem("b", ["scaled-font", "mx-1"], {});
|
||||||
title.innerHTML = ability.display_name;
|
title.innerHTML = ability.display_name;
|
||||||
switch(ability.display.icon) {
|
switch(ability.display.icon) {
|
||||||
|
case "node_0":
|
||||||
|
// already white
|
||||||
|
break;
|
||||||
case "node_1":
|
case "node_1":
|
||||||
title.classList.add("mc-gold");
|
title.classList.add("mc-gold");
|
||||||
break;
|
break;
|
||||||
|
@ -1098,9 +1101,6 @@ function generateTooltip(UI_elem, node_elem, ability, atree_map) {
|
||||||
case "node_shaman":
|
case "node_shaman":
|
||||||
title.classList.add("mc-green");
|
title.classList.add("mc-green");
|
||||||
break;
|
break;
|
||||||
case "0":
|
|
||||||
// already white
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
container.appendChild(title);
|
container.appendChild(title);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue