4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
657 B

scriptname _00E_Theriantrophist_Update_12 Hidden
function Run(_00E_Theriantrophist_AlchemyControl PlayerAlias) global
Potion k
int potionNames = JMap.getObj(JDB.root(), "EnderalFS.RenamedPotions")
int potionModels = JMap.getObj(JDB.root(), "EnderalFS.ModelChangedPotions")
if potionNames > 0
k = JFormMap.nextKey(potionNames, previousKey = None, endKey = None) as Potion
while k != None
PlayerAlias._addNamedPotion(k, JFormMap.getStr(potionNames, k), JFormMap.getStr(potionModels, k))
k = JFormMap.nextKey(potionNames, k, endKey = None) as Potion
endwhile
JFormMap.clear(potionNames)
JFormMap.clear(potionModels)
endif
endfunction