use of delta.games.lotro.tools.lore.items.lotroplan.relics.LotroPlanMordorRelicsLoader in project lotro-tools by dmorcellet.
the class RelicsIndexPageParser method addGorgorothRelics.
private void addGorgorothRelics(RelicsManager relicsMgr) {
RelicsCategory category = findGorgorothCategory(relicsMgr);
if (category != null) {
LotroPlanMordorRelicsLoader relicsLoader = new LotroPlanMordorRelicsLoader();
List<Relic> relics = relicsLoader.loadGorgorothRelics();
for (Relic relic : relics) {
String name = relic.getName();
Relic oldOne = category.getByName(name);
if (oldOne != null) {
mergeRelics(oldOne, relic);
} else {
category.addRelic(relic);
}
}
}
}
Aggregations