Example #1
0
def SetDynamicLists(item, tree=False):
    ### Sigil of Strength: SetDynamicLists(24562) ###
    ### Damask Patch: SetDynamicLists(71334)      ###
    ### +5 Agony Infusion: SetDynamicLists(49428) ###
    out, r, i = Trawler.TrawlCraftingTree(item, tree)
    if (out == "O"):
        i.update(DD.items)
        r.update(DD.recipes)
        DataFiles.WriteDynamicLists(i, r)
        Trawler.LoadLists()
        Ledger.LoadLists()
    else:
        print("An error has occured. The data is likely corrupt or incorrect.")
        print("DynamicData.py has not been ovewritten.")