use of delta.games.lotro.tools.lore.deeds.checks.CheckItemRewardsInDeeds in project lotro-tools by dmorcellet.
the class MainLotroWikiDeedsLoader method writeResultFile.
private void writeResultFile() {
List<DeedDescription> deeds = new ArrayList<DeedDescription>();
DeedXMLParser parser = new DeedXMLParser();
File currentDir = new File(".");
for (File deedFile : currentDir.listFiles()) {
if (deedFile.getName().endsWith(".xml")) {
List<DeedDescription> newDeeds = parser.parseXML(deedFile);
deeds.addAll(newDeeds);
}
}
// Resolve deed links
new DeedLinksResolver(deeds).doIt();
int nbDeeds = deeds.size();
System.out.println("Found " + nbDeeds + " deeds.");
new CheckItemRewardsInDeeds().doIt(deeds);
new NormalizeDeedsText().doIt(deeds);
new CheckDeedLinks().doIt(deeds);
File out = new File("../lotro-companion/data/lore/deeds.xml");
DeedsContainer.writeSortedDeeds(deeds, out);
}
Aggregations