parent
b1f2ef17b5
commit
7f4ea4e047
2 changed files with 19 additions and 12 deletions
Binary file not shown.
@ -1,19 +1,26 @@ |
|||||||
scriptname _00E_Theriantrophist_Update_12 Hidden |
scriptname _00E_Theriantrophist_Update_12 Hidden |
||||||
|
{Moved to a separate script to remove the JContainers dependency from _00E_Theriantrophist_AlchemyControl} |
||||||
|
|
||||||
function Run(_00E_Theriantrophist_AlchemyControl PlayerAlias) global |
function Run(_00E_Theriantrophist_AlchemyControl PlayerAlias) global |
||||||
|
|
||||||
Potion k |
Int SKSEVer = SKSE.GetVersion() |
||||||
int potionNames = JMap.getObj(JDB.root(), "EnderalFS.RenamedPotions") |
|
||||||
int potionModels = JMap.getObj(JDB.root(), "EnderalFS.ModelChangedPotions") |
if SKSEVer >= 2 && (SKSE.GetPluginVersion("JContainers64") > 0 || SKSE.GetPluginVersion("JContainersVR") > 0) |
||||||
|
|
||||||
if potionNames > 0 |
Potion k |
||||||
k = JFormMap.nextKey(potionNames, previousKey = None, endKey = None) as Potion |
int potionNames = JMap.getObj(JDB.root(), "EnderalFS.RenamedPotions") |
||||||
while k != None |
int potionModels = JMap.getObj(JDB.root(), "EnderalFS.ModelChangedPotions") |
||||||
PlayerAlias._addNamedPotion(k, JFormMap.getStr(potionNames, k), JFormMap.getStr(potionModels, k)) |
|
||||||
k = JFormMap.nextKey(potionNames, k, endKey = None) as Potion |
if potionNames > 0 |
||||||
endwhile |
k = JFormMap.nextKey(potionNames, previousKey = None, endKey = None) as Potion |
||||||
JFormMap.clear(potionNames) |
while k != None |
||||||
JFormMap.clear(potionModels) |
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 |
||||||
|
|
||||||
endif |
endif |
||||||
|
|
||||||
endfunction |
endfunction |
||||||
|
Loading…
Reference in new issue