2022-08-01 17:48:43 +00:00
|
|
|
scriptname _00E_Theriantrophist_Update_12 Hidden
|
|
|
|
|
|
|
|
function Run(_00E_Theriantrophist_AlchemyControl PlayerAlias) global
|
|
|
|
|
2022-08-04 19:37:50 +00:00
|
|
|
Int SKSEVer = SKSE.GetVersion()
|
|
|
|
|
|
|
|
if SKSEVer >= 2 && (SKSE.GetPluginVersion("JContainers64") > 0 || SKSE.GetPluginVersion("JContainersVR") > 0)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-08-01 17:48:43 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
endfunction
|