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": case "Imperium - Adeptus Astartes":
return "#536766"; return "#536766";
case "Imperium - Adeptus Custodes": case "Imperium - Adeptus Custodes":
return "#536766"; return "#93672a";
case "Imperium - Adeptus Mechanicus": case "Imperium - Adeptus Mechanicus":
return "#536766"; return "#a0361b";
case "Imperium - Adepta Sororitas": case "Imperium - Adepta Sororitas":
return "#5e0a00"; return "#5e0a00";
case "Imperium - Astra Militarum": case "Imperium - Astra Militarum":
return "#375441"; return "#375441";
case "Imperium - Grey Knights":
return "#465056";
case "Chaos - Daemons": case "Chaos - Daemons":
return "#383c46"; return "#383c46";
case "Chaos Space Marines": case "Chaos - Chaos Space Marines":
return "#1d3138"; return "#1d3138";
case "Chaos - World Eaters": case "Chaos - World Eaters":
return "#883531"; return "#883531";
case "Chaos - Death Guard": case "Chaos - Death Guard":
return "#5c672b"; return "#5c672b";
case "Drukhari": case "Chaos - Chaos Knights":
return "#536766"; return "#513627";
case "Genestealer Cults":
return "#536766";
case "Grey Knights":
return "#536766";
case "Harlequins":
return "#536766";
case "Imperial Knights":
return "#536766";
case "Necrons": case "Necrons":
return "#005c2f"; return "#005c2f";
case "Orks": case "Orks":
return "#4b6621"; 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":
case "Tyranids - Genestealer Cults": case "Tyranids - Genestealer Cults":
return "#44264C"; return "#44264C";
case "Ynnari": case "Aeldari - Harlequins":
return "#536766"; return "#6f322f";
case "Leagues of Votann": case "Leagues of Votann":
return "#7d4c08"; return "#7d4c08";
default: default:
+8
View File
@@ -125,6 +125,7 @@ const Weapon = ({ weapon, modelStats, isMelee, className, forceRules }) => {
); );
replaceAbilityWithType(["Plague Weapon.", "Plague Weapon"], "Plague Weapon"); replaceAbilityWithType(["Plague Weapon.", "Plague Weapon"], "Plague Weapon");
replaceAbilityWithType(["Sonic Weapon.", "Sonic Weapon"], "Sonic Weapon"); replaceAbilityWithType(["Sonic Weapon.", "Sonic Weapon"], "Sonic Weapon");
replaceAbilityWithType(["Shuriken.", "Shuriken"], "Shuriken");
replaceAbilityWithType( replaceAbilityWithType(
["Turret Weapon.", "Turret weapon.", "Turret Weapon", "Turret weapon"], ["Turret Weapon.", "Turret weapon.", "Turret Weapon", "Turret weapon"],
"Turret Weapon" "Turret Weapon"
@@ -162,6 +163,9 @@ const Weapon = ({ weapon, modelStats, isMelee, className, forceRules }) => {
abilities?.includes( abilities?.includes(
"Each time an attack is made with this weapon, subtract 1 from that attack's hit roll." "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( abilities?.includes(
"Each time an attack is made with this weapon profile, subtract 1 from that attack's hit roll." "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.", "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( .replaceAll(
"Each time an attack is made with this weapon profile, subtract 1 from that attack's hit roll.", "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 { .weapons-table th {
font-size: 1.1em; font-size: 1.1em;
padding: 2px 8px; padding: 2px 6px;
height: 27px; height: 27px;
font-weight: 600; font-weight: 600;
} }
.weapons-table td { .weapons-table td {
padding: 1px 8px; padding: 1px 6px;
border-top: 1px dotted #9e9fa1; border-top: 1px dotted #9e9fa1;
text-align: center; text-align: center;
vertical-align: baseline; vertical-align: baseline;