fixed exception regarding abilities
This commit is contained in:
@@ -781,6 +781,7 @@ const ForceRules = ({ rules, onePerPage }) => {
|
|||||||
padding: "var(--size-20)",
|
padding: "var(--size-20)",
|
||||||
backgroundColor: "#dfe0e2",
|
backgroundColor: "#dfe0e2",
|
||||||
border: "2px solid var(--primary-color)",
|
border: "2px solid var(--primary-color)",
|
||||||
|
marginBottom: 32,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{[...rules.keys()]
|
{[...rules.keys()]
|
||||||
|
|||||||
+5
-1
@@ -958,7 +958,7 @@ function ParseModelProfiles(profiles, model, unit) {
|
|||||||
model.psyker = ParsePsykerProfile(profile);
|
model.psyker = ParsePsykerProfile(profile);
|
||||||
} else {
|
} else {
|
||||||
// Everything else, like Prayers and Warlord Traits.
|
// Everything else, like Prayers and Warlord Traits.
|
||||||
if (!unit.abilities[typeName]) unit.abilities[typeName] = new Map();
|
if (!unit.abilities.Abilities) unit.abilities["Abilities"] = new Map();
|
||||||
ParseProfileCharacteristics(
|
ParseProfileCharacteristics(
|
||||||
profile,
|
profile,
|
||||||
profileName,
|
profileName,
|
||||||
@@ -980,6 +980,10 @@ function ParseProfileCharacteristics(profile, profileName, typeName, map) {
|
|||||||
map.set([profileName, charName.toString()].join(" - "), char.textContent);
|
map.set([profileName, charName.toString()].join(" - "), char.textContent);
|
||||||
} else {
|
} else {
|
||||||
// Profiles with a single characteristic can ignore the char name.
|
// Profiles with a single characteristic can ignore the char name.
|
||||||
|
if (!map) {
|
||||||
|
debugger;
|
||||||
|
}
|
||||||
|
console.log(map);
|
||||||
map.set(profileName, char.textContent);
|
map.set(profileName, char.textContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user