diff --git a/scripts/_00E_EnderalVersion.pex b/scripts/_00E_EnderalVersion.pex index a2a683ade..1f904cab3 100644 Binary files a/scripts/_00E_EnderalVersion.pex and b/scripts/_00E_EnderalVersion.pex differ diff --git a/source/Enderal DLL/src/Util.h b/source/Enderal DLL/src/Util.h index d10d1b84d..efe69b4c7 100644 --- a/source/Enderal DLL/src/Util.h +++ b/source/Enderal DLL/src/Util.h @@ -103,7 +103,7 @@ inline void CheckScriptVersions() std::map scripts; scripts["_00e_a2_eyeofthestormsc"] = 1; - scripts["_00E_EnderalVersion"] = 1; + scripts["_00E_EnderalVersion"] = 2; scripts["EnderalFunctions"] = 2; scripts["_00E_PlayerFunctions"] = 2; scripts["_00E_PlayerSetUpScript"] = 1; diff --git a/source/scripts/_00E_EnderalVersion.psc b/source/scripts/_00E_EnderalVersion.psc index 7dd61e4bd..451ede65c 100644 --- a/source/scripts/_00E_EnderalVersion.psc +++ b/source/scripts/_00E_EnderalVersion.psc @@ -4,7 +4,7 @@ Scriptname _00E_EnderalVersion extends ReferenceAlias Hidden int iPatchVersion int function _GetScriptVersion() Global - return 1 + return 2 endFunction int function GetVersion() global @@ -25,9 +25,18 @@ Event OnPlayerLoadGame() (Game.GetForm(0x49425) as GlobalVariable).SetValue((Game.GetForm(0x100F19) as GlobalVariable).GetValue()) 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() Debug.Trace("Setting current version to " + GetVersion()) iPatchVersion = GetVersion() endif - + EndEvent