From ab65c786391fbdbd0921c0f610a3d03b9d7e726d Mon Sep 17 00:00:00 2001 From: NilsUeter Date: Sat, 13 May 2023 09:44:12 +0200 Subject: [PATCH] more faction colors and keywords --- src/App.jsx | 32 +++++++++----------------------- src/Weapons.jsx | 8 ++++++++ src/index.css | 4 ++-- 3 files changed, 19 insertions(+), 25 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index dfbd82b..3e18c9c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -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: diff --git a/src/Weapons.jsx b/src/Weapons.jsx index c31cf8d..bcddb6b 100644 --- a/src/Weapons.jsx +++ b/src/Weapons.jsx @@ -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.", "" diff --git a/src/index.css b/src/index.css index 6c7c4cc..a5118ea 100644 --- a/src/index.css +++ b/src/index.css @@ -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;