localPT=LibStub("LibPeriodicTable-3.1")...-- Add items from set to rawListfunctionMyMod:RawItemsAdd(rawList,set,priority)if(notrawList)thenrawList={}endif(set)thenlocalcacheSet=PT:GetSetTable(set)if(cacheSet)thenlocalindex=#rawList+1foritemId,valueinPT:IterateSet(set)doif(notvalueortype(value)=="boolean")thenvalue=0;endvalue=tonumber(value)rawList[index]={itemId,value,priority}index=index+1endelseprint("MyMod could not find the PT3.1 set ",set,". Make sure you have all the libraries MyMod needs to function.")endendreturnrawListend...rawList=self:RawItemsAdd(rawList,"Consumable.Food.Edible.Meat.Basic",true)
Comments