added Chaos Demons demo, style improvements

This commit is contained in:
NilsUeter
2023-05-09 21:24:45 +02:00
parent b966a31606
commit 88812cf5a5
5 changed files with 55 additions and 34 deletions
+2 -4
View File
@@ -227,9 +227,7 @@ const Weapon = ({ weapon, modelStats, isMelee, className }) => {
return (
<>
<tr className={className}>
<td style={{ borderTop: "none", backgroundColor: "#dfe0e2" }}>
{differentProfiles && Arrow}
</td>
<td style={{ borderTop: "none" }}>{differentProfiles && Arrow}</td>
<td style={{ textAlign: "left" }}>
<div
style={{
@@ -303,7 +301,7 @@ const getWeaponClassNames = (weapons, index) => {
};
const calculateWeaponStrength = (strModel, strWeapon) => {
if (strWeapon.startsWith("User")) return strModel;
if (strWeapon.includes("User")) return strModel;
if (strWeapon.startsWith("x")) {
return strModel * parseInt(strWeapon.replace("x", ""));
}