Search in sources :

Example 1 with MAGICAL_ITEM_LEVEL

use of eidolons.content.DC_CONSTS.MAGICAL_ITEM_LEVEL in project Eidolons by IDemiurge.

the class ContainerMaster method generateJewelry.

private List<ObjType> generateJewelry(ITEM_RARITY rarity, List<ObjType> group) {
    ItemGenerator generator = ItemGenerator.getDefaultGenerator();
    JEWELRY_ITEM_TRAIT[] traits = getJewelryTraits(rarity);
    MAGICAL_ITEM_LEVEL[] levels = getJewelryLevels(rarity);
    for (ObjType sub : new ArrayList<>(group)) for (MAGICAL_ITEM_LEVEL level : levels) for (JEWELRY_ITEM_TRAIT trait : traits) group.add(generator.getOrCreateJewelry(sub, trait, level));
    return group;
}
Also used : JEWELRY_ITEM_TRAIT(eidolons.content.DC_CONSTS.JEWELRY_ITEM_TRAIT) ObjType(main.entity.type.ObjType) ItemGenerator(eidolons.client.cc.logic.items.ItemGenerator) MAGICAL_ITEM_LEVEL(eidolons.content.DC_CONSTS.MAGICAL_ITEM_LEVEL)

Aggregations

ItemGenerator (eidolons.client.cc.logic.items.ItemGenerator)1 JEWELRY_ITEM_TRAIT (eidolons.content.DC_CONSTS.JEWELRY_ITEM_TRAIT)1 MAGICAL_ITEM_LEVEL (eidolons.content.DC_CONSTS.MAGICAL_ITEM_LEVEL)1 ObjType (main.entity.type.ObjType)1