From 8c1f40d9ecad2ba97e7b2ff5a41349509e507b78 Mon Sep 17 00:00:00 2001 From: genBTC Date: Sun, 5 Nov 2023 14:35:27 -0500 Subject: [PATCH] Fix duplicate fast icons in maps and re-reveal text=name --- modules/fight-info.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/fight-info.js b/modules/fight-info.js index 18cff050f..0e70babb6 100644 --- a/modules/fight-info.js +++ b/modules/fight-info.js @@ -101,26 +101,29 @@ if (cell.name.toLowerCase().indexOf('skele') > -1) // Skeletimp cell { $cell.insertAdjacentHTML('beforeend', " "); - $cell.title = cell.name; + $cell.title = cell.name; //reveal on hover $cell.style.textShadow = '0px 0px 10px #ffffff'; } else if (M["fightinfo"].exotics.indexOf(cell.name) > -1) // Exotic cell { $cell.insertAdjacentHTML('beforeend', " "); - $cell.title = cell.name; + $cell.title = cell.name; //reveal on hover $cell.style.textShadow = '0px 0px 10px #fb753f'; } else if (M["fightinfo"].powerful.indexOf(cell.name) > -1) // Powerful imp { $cell.insertAdjacentHTML('beforeend', " "); - $cell.title = cell.name; + $cell.title = cell.name; //reveal on hover $cell.style.textShadow = '0px 0px 10px #8c0000'; } else if (M["fightinfo"].fast.indexOf(cell.name) > -1) // Fast imp { - $cell.insertAdjacentHTML('beforeend', ""); - $cell.title = cell.name; - $cell.style.textShadow = '0px 0px 10px #ffffff'; + if (game.global.mapsActive && cell.special.length === 0) + $cell.innerHTML = ""; + else if ($cell.title != cell.name) + $cell.insertAdjacentHTML('beforeend', ""); + $cell.title = cell.name; //reveal on hover + //$cell.style.textShadow = '0px 0px 10px #ffffff'; //no glow } //?? Imps are labelled Toxic/Gusty/Frozen but that didin't work either ??