Skip to content

Commit

Permalink
Fix duplicate fast icons in maps and re-reveal text=name
Browse files Browse the repository at this point in the history
  • Loading branch information
genbtc committed Nov 5, 2023
1 parent 3f05ef0 commit 8c1f40d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions modules/fight-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,26 +101,29 @@
if (cell.name.toLowerCase().indexOf('skele') > -1) // Skeletimp cell
{
$cell.insertAdjacentHTML('beforeend', "<span class=\"glyphicon glyphicon-italic\"></span> ");
$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', "<span class=\"glyphicon glyphicon-sunglasses\"></span> ");
$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', "<span class=\"glyphicon glyphicon-hazard\"></span> ");
$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', "<span class=\"glyphicon glyphicon-forward\"></span>");
$cell.title = cell.name;
$cell.style.textShadow = '0px 0px 10px #ffffff';
if (game.global.mapsActive && cell.special.length === 0)
$cell.innerHTML = "<span class=\"glyphicon glyphicon-forward\"></span>";
else if ($cell.title != cell.name)
$cell.insertAdjacentHTML('beforeend', "<span class=\"glyphicon glyphicon-forward\"></span>");
$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 ??
Expand Down

0 comments on commit 8c1f40d

Please sign in to comment.