diff --git a/public/Chaos Demons Mix.rosz b/public/Chaos Demons Mix.rosz
new file mode 100644
index 0000000..db441b0
Binary files /dev/null and b/public/Chaos Demons Mix.rosz differ
diff --git a/src/App.jsx b/src/App.jsx
index 3d80786..ac8212a 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -27,8 +27,18 @@ function App() {
};
reader.readAsBinaryString(files[0]);
} else {
+ let example;
+ switch (event) {
+ case "ultras":
+ example = await fetch("Ultramarines Example.rosz");
+ break;
+ case "chaos daemons":
+ example = await fetch("Chaos Demons Mix.rosz");
+ default:
+ break;
+ }
// load example
- const example = await fetch("Ultramarines Example.rosz");
+
const arrayBuffer = await example.arrayBuffer();
// Create a new Blob object from the zip file contents
const zipBlob = new Blob([arrayBuffer], { type: "application/zip" });
@@ -189,13 +199,22 @@ function App() {
{error}
-
+
+
+
+
{
fontSize: " 1.7em",
fontWeight: "800",
textTransform: "uppercase",
+ marginBottom: "12px",
}}
>
{name} [{cost.commandPoints} CP]
@@ -121,8 +122,6 @@ const Unit = ({ unit, index, catalog, onePerPage }) => {
}
style={{
fontWeight: 500,
- border: "2px solid var(--primary-color)",
- backgroundColor: "#DFE0E2",
marginBottom: 32,
"--primary-color": overridePrimary,
@@ -133,7 +132,11 @@ const Unit = ({ unit, index, catalog, onePerPage }) => {
>
-
+
@@ -625,10 +635,10 @@ const Psykers = ({ title, psykers }) => {
color: "#fff",
}}
>
-
{title} |
+
PSYKER |
Cast |
Deny |
-
+ |
Powers Known
|
@@ -640,8 +650,7 @@ const Psykers = ({ title, psykers }) => {
))}
{psykers.length > 0 && (
- |
- |
+ |
)}
@@ -657,18 +666,7 @@ const Psyker = ({ psyker, index }) => {
className={index % 2 ? "rowOtherColor" : ""}
style={{ fontSize: ".8em" }}
>
-
-
- {name}
-
- |
+
|
{cast} |
{deny} |
diff --git a/src/Weapons.jsx b/src/Weapons.jsx
index fc161f8..f7dc154 100644
--- a/src/Weapons.jsx
+++ b/src/Weapons.jsx
@@ -227,9 +227,7 @@ const Weapon = ({ weapon, modelStats, isMelee, className }) => {
return (
<>
|
- |
- {differentProfiles && Arrow}
- |
+ {differentProfiles && Arrow} |
{
};
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", ""));
}
diff --git a/src/index.css b/src/index.css
index eaa803d..d9249f0 100644
--- a/src/index.css
+++ b/src/index.css
@@ -71,7 +71,7 @@ button:focus-visible {
align-items: center;
justify-content: center;
gap: 8px;
- padding: var(--size-24) var(--size-32);
+ padding: var(--size-24) var(--size-20);
max-width: 1100px;
margin-left: auto;
margin-right: auto;
@@ -177,6 +177,12 @@ button:focus-visible {
#root {
min-width: 1000px;
}
+
+ .body {
+ padding: 0;
+ display: block;
+ max-width: none;
+ }
}
@media screen and (max-width: 800px) {
|