Search in sources :

Example 1 with LotroPlanMordorRelicsLoader

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);
            }
        }
    }
}
Also used : Relic(delta.games.lotro.lore.items.legendary.relics.Relic) RelicsCategory(delta.games.lotro.lore.items.legendary.relics.RelicsCategory) LotroPlanMordorRelicsLoader(delta.games.lotro.tools.lore.items.lotroplan.relics.LotroPlanMordorRelicsLoader)

Aggregations

Relic (delta.games.lotro.lore.items.legendary.relics.Relic)1 RelicsCategory (delta.games.lotro.lore.items.legendary.relics.RelicsCategory)1 LotroPlanMordorRelicsLoader (delta.games.lotro.tools.lore.items.lotroplan.relics.LotroPlanMordorRelicsLoader)1