Simplification import
This commit is contained in:
parent
d0a5a3617c
commit
a3e6b95ef3
@ -165,26 +165,18 @@ export class RdDStatBlockParser {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case "creature":
|
case "creature":
|
||||||
RdDStatBlockParser.parseCreature(statString, actorData)
|
RdDStatBlockParser.parseCreature(statString, actorData)
|
||||||
|
await RdDStatBlockParser.parseCompetences(statString, actorData, items)
|
||||||
break
|
break
|
||||||
case "entite":
|
case "entite":
|
||||||
RdDStatBlockParser.parseEntite(statString, actorData)
|
RdDStatBlockParser.parseEntite(statString, actorData)
|
||||||
|
await RdDStatBlockParser.parseCompetences(statString, actorData, items)
|
||||||
break
|
break
|
||||||
}
|
case "personnage":
|
||||||
if (type == "personnage") {
|
await RdDStatBlockParser.parseArmors(statString, actorData, items);
|
||||||
// Now process armors
|
await RdDStatBlockParser.parseCompetences(statString, actorData, items);
|
||||||
await RdDStatBlockParser.parseArmors(statString, actorData, items);
|
await RdDStatBlockParser.parseWeapons(statString, items);
|
||||||
}
|
await RdDStatBlockParser.parseHautReve(statString, actorData, items);
|
||||||
|
RdDStatBlockParser.parsePersonnage(statString, actorData);
|
||||||
// Get skills from compendium
|
|
||||||
await RdDStatBlockParser.parseCompetences(statString, actorData, items);
|
|
||||||
|
|
||||||
|
|
||||||
if (type == "personnage") {
|
|
||||||
// Now process weapons
|
|
||||||
await RdDStatBlockParser.parseWeapons(statString, items);
|
|
||||||
|
|
||||||
await RdDStatBlockParser.parseHautReve(statString, actorData, items);
|
|
||||||
RdDStatBlockParser.parsePersonnage(statString, actorData);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const name = RdDStatBlockParser.extractName(type, statString);
|
const name = RdDStatBlockParser.extractName(type, statString);
|
||||||
|
Loading…
Reference in New Issue
Block a user