underscore density when over max defense

This commit is contained in:
1brucben
2025-04-24 02:30:48 +02:00
parent e6acbd0702
commit fdb47fb167
+7
View File
@@ -307,6 +307,13 @@ export class NameLayer implements Layer {
shieldNumber.style.fontSize = `${render.fontSize * 0.6}px`;
shieldNumber.style.marginTop = `${-render.fontSize * 0.1}px`;
shieldNumber.textContent = density;
if (parseFloat(density) > 90) {
shieldNumber.style.textDecoration = "underline";
shieldNumber.style.fontWeight = "bold";
} else {
shieldNumber.style.textDecoration = "none";
shieldNumber.style.fontWeight = "normal";
}
}
// Handle icons