Removed _00E_Theriantrophist_Update_12, the last script depending on JContainers

This commit is contained in:
Eddoursul 2023-12-03 20:10:04 +01:00
parent 4b8475aa7a
commit b46a7f7071
5 changed files with 4 additions and 32 deletions

View File

@ -24,7 +24,7 @@ Event OnUpdate()
EndEvent EndEvent
; called from _00E_PlayerSetUpScript in Maintenance() to update ini setting fAutosaveEveryXMins in case it was changed ; called from _00E_AutosaveIntervalAlias to update ini setting fAutosaveEveryXMins in case it was changed
Function UpdateAutoSaveInterval() Function UpdateAutoSaveInterval()
fUpdateTime = Utility.GetIniFloat("fAutosaveEveryXMins:SaveGame") fUpdateTime = Utility.GetIniFloat("fAutosaveEveryXMins:SaveGame")

View File

@ -81,7 +81,7 @@ bool bDoneDarkBlood = false
bool bDoneChymikum = false bool bDoneChymikum = false
Int curScriptVersion = 0 Int curScriptVersion = 0
Int Property LATEST_SCRIPT_VERSION = 5 AutoReadOnly Int Property LATEST_SCRIPT_VERSION = 6 AutoReadOnly
Potion[] aCreatedPotions Potion[] aCreatedPotions
string[] aPotionNames string[] aPotionNames
@ -408,11 +408,8 @@ Function _InitAchemyControl()
Int oldScriptVersion = curScriptVersion Int oldScriptVersion = curScriptVersion
curScriptVersion = LATEST_SCRIPT_VERSION curScriptVersion = LATEST_SCRIPT_VERSION
If oldScriptVersion < 5 If oldScriptVersion < 6
RemoveAllInventoryEventFilters() ;
UnregisterForAllMenus()
UnregisterForUpdate()
_00E_Theriantrophist_Update_12.Run(self)
EndIf EndIf
EndIf EndIf

View File

@ -1,25 +0,0 @@
scriptname _00E_Theriantrophist_Update_12 Hidden
function Run(_00E_Theriantrophist_AlchemyControl PlayerAlias) global
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
endif
endfunction