more faction colors and keywords

This commit is contained in:
NilsUeter
2023-05-13 09:44:12 +02:00
parent 6834825241
commit ab65c78639
3 changed files with 19 additions and 25 deletions
+9 -23
View File
@@ -267,48 +267,34 @@ const getPrimaryColor = (catalog) => {
case "Imperium - Adeptus Astartes":
return "#536766";
case "Imperium - Adeptus Custodes":
return "#536766";
return "#93672a";
case "Imperium - Adeptus Mechanicus":
return "#536766";
return "#a0361b";
case "Imperium - Adepta Sororitas":
return "#5e0a00";
case "Imperium - Astra Militarum":
return "#375441";
case "Imperium - Grey Knights":
return "#465056";
case "Chaos - Daemons":
return "#383c46";
case "Chaos Space Marines":
case "Chaos - Chaos Space Marines":
return "#1d3138";
case "Chaos - World Eaters":
return "#883531";
case "Chaos - Death Guard":
return "#5c672b";
case "Drukhari":
return "#536766";
case "Genestealer Cults":
return "#536766";
case "Grey Knights":
return "#536766";
case "Harlequins":
return "#536766";
case "Imperial Knights":
return "#536766";
case "Chaos - Chaos Knights":
return "#513627";
case "Necrons":
return "#005c2f";
case "Orks":
return "#4b6621";
case "Sisters of Battle":
return "#536766";
case "Space Marines":
return "#536766";
case "Tau Empire":
return "#536766";
case "Thousand Sons":
return "#536766";
case "Tyranids":
case "Tyranids - Genestealer Cults":
return "#44264C";
case "Ynnari":
return "#536766";
case "Aeldari - Harlequins":
return "#6f322f";
case "Leagues of Votann":
return "#7d4c08";
default:
+8
View File
@@ -125,6 +125,7 @@ const Weapon = ({ weapon, modelStats, isMelee, className, forceRules }) => {
);
replaceAbilityWithType(["Plague Weapon.", "Plague Weapon"], "Plague Weapon");
replaceAbilityWithType(["Sonic Weapon.", "Sonic Weapon"], "Sonic Weapon");
replaceAbilityWithType(["Shuriken.", "Shuriken"], "Shuriken");
replaceAbilityWithType(
["Turret Weapon.", "Turret weapon.", "Turret Weapon", "Turret weapon"],
"Turret Weapon"
@@ -162,6 +163,9 @@ const Weapon = ({ weapon, modelStats, isMelee, className, forceRules }) => {
abilities?.includes(
"Each time an attack is made with this weapon, subtract 1 from that attack's hit roll."
) ||
abilities?.includes(
"Each time an attack is made with this weapon, subtract 1 from that attack's hit roll"
) ||
abilities?.includes(
"Each time an attack is made with this weapon profile, subtract 1 from that attack's hit roll."
) ||
@@ -181,6 +185,10 @@ const Weapon = ({ weapon, modelStats, isMelee, className, forceRules }) => {
"Each time an attack is made with this weapon, subtract 1 from that attack's hit roll.",
""
)
.replaceAll(
"Each time an attack is made with this weapon, subtract 1 from that attack's hit roll",
""
)
.replaceAll(
"Each time an attack is made with this weapon profile, subtract 1 from that attack's hit roll.",
""
+2 -2
View File
@@ -133,13 +133,13 @@ button:focus-visible {
.weapons-table th {
font-size: 1.1em;
padding: 2px 8px;
padding: 2px 6px;
height: 27px;
font-weight: 600;
}
.weapons-table td {
padding: 1px 8px;
padding: 1px 6px;
border-top: 1px dotted #9e9fa1;
text-align: center;
vertical-align: baseline;