better styling of ws and bs degradation

This commit is contained in:
NilsUeter
2023-05-07 12:07:15 +02:00
parent 9134d420a5
commit 9e29014a6d
+16 -7
View File
@@ -380,13 +380,6 @@ const ModelStats = ({
}} }}
> >
{name} {name}
{name.toLowerCase().includes("wounds remaining") &&
(bsChange !== 0 || wsChange !== 0) &&
` Each time this model makes an attack, subtract ${
bsChange ? `${bsChange} from the balistic skill` : ""
}${bsChange !== 0 && wsChange !== 0 ? " and " : ""}${
wsChange ? `${wsChange} from the weapon skill` : ""
}.`}
</div> </div>
)} )}
{showWeapons && ( {showWeapons && (
@@ -402,6 +395,22 @@ const ModelStats = ({
))} ))}
</div> </div>
)} )}
{name.toLowerCase().includes("wounds remaining") &&
(bsChange !== 0 || wsChange !== 0) && (
<div
style={{
whiteSpace: "normal",
marginLeft: -10,
fontSize: "0.7em",
}}
>
{` Each time this model makes
an attack, subtract
${bsChange ? `${bsChange} from the balistic skill` : ""}
${bsChange !== 0 && wsChange !== 0 ? " and " : ""}
${wsChange ? `${wsChange} from the weapon skill` : ""}.`}
</div>
)}
</div> </div>
); );
}; };