diff --git a/module/apps/rdd-import-stats.js b/module/apps/rdd-import-stats.js index 446df267..78ea64ed 100644 --- a/module/apps/rdd-import-stats.js +++ b/module/apps/rdd-import-stats.js @@ -165,26 +165,18 @@ export class RdDStatBlockParser { switch (type) { case "creature": RdDStatBlockParser.parseCreature(statString, actorData) + await RdDStatBlockParser.parseCompetences(statString, actorData, items) break case "entite": RdDStatBlockParser.parseEntite(statString, actorData) + await RdDStatBlockParser.parseCompetences(statString, actorData, items) break - } - if (type == "personnage") { - // Now process armors - await RdDStatBlockParser.parseArmors(statString, actorData, items); - } - - // 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); + case "personnage": + await RdDStatBlockParser.parseArmors(statString, actorData, items); + await RdDStatBlockParser.parseCompetences(statString, actorData, items); + await RdDStatBlockParser.parseWeapons(statString, items); + await RdDStatBlockParser.parseHautReve(statString, actorData, items); + RdDStatBlockParser.parsePersonnage(statString, actorData); } const name = RdDStatBlockParser.extractName(type, statString);