Added 2.1.4.1 update procedure

This commit is contained in:
Eddoursul 2026-01-24 23:53:29 +01:00
parent 597c9d681f
commit 3f2f63adca
3 changed files with 12 additions and 3 deletions

Binary file not shown.

View File

@ -103,7 +103,7 @@ inline void CheckScriptVersions()
std::map<std::string, short> scripts; std::map<std::string, short> scripts;
scripts["_00e_a2_eyeofthestormsc"] = 1; scripts["_00e_a2_eyeofthestormsc"] = 1;
scripts["_00E_EnderalVersion"] = 1; scripts["_00E_EnderalVersion"] = 2;
scripts["EnderalFunctions"] = 2; scripts["EnderalFunctions"] = 2;
scripts["_00E_PlayerFunctions"] = 2; scripts["_00E_PlayerFunctions"] = 2;
scripts["_00E_PlayerSetUpScript"] = 1; scripts["_00E_PlayerSetUpScript"] = 1;

View File

@ -4,7 +4,7 @@ Scriptname _00E_EnderalVersion extends ReferenceAlias Hidden
int iPatchVersion int iPatchVersion
int function _GetScriptVersion() Global int function _GetScriptVersion() Global
return 1 return 2
endFunction endFunction
int function GetVersion() global int function GetVersion() global
@ -25,9 +25,18 @@ Event OnPlayerLoadGame()
(Game.GetForm(0x49425) as GlobalVariable).SetValue((Game.GetForm(0x100F19) as GlobalVariable).GetValue()) (Game.GetForm(0x49425) as GlobalVariable).SetValue((Game.GetForm(0x100F19) as GlobalVariable).GetValue())
endif endif
if iPatchVersion < 33620993 ; 2.1.4.1
Debug.Trace("Updating to v2.1.4.1 (33620993)...")
; Move Dreamflower Elixir recipe back to player
Actor rBlueprintActor = Game.GetFormFromFile(0x2A3DB, "Enderal - Forgotten Stories.esm") as Actor
MiscObject rDreamFlowerRecipe = Game.GetForm(0x43E1B) as MiscObject
Actor rPlayer = Game.GetForm(0x14) as Actor
rBlueprintActor.RemoveItem(rDreamFlowerRecipe, 1, true, rPlayer)
endif
if iPatchVersion < GetVersion() if iPatchVersion < GetVersion()
Debug.Trace("Setting current version to " + GetVersion()) Debug.Trace("Setting current version to " + GetVersion())
iPatchVersion = GetVersion() iPatchVersion = GetVersion()
endif endif
EndEvent EndEvent