From 3f2f63adca547a452ccae507b27b75682b425fec Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Sat, 24 Jan 2026 23:53:29 +0100 Subject: [PATCH] Added 2.1.4.1 update procedure --- scripts/_00E_EnderalVersion.pex | Bin 1381 -> 1843 bytes source/Enderal DLL/src/Util.h | 2 +- source/scripts/_00E_EnderalVersion.psc | 13 +++++++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/_00E_EnderalVersion.pex b/scripts/_00E_EnderalVersion.pex index a2a683adefc30f43796762e94c70c69bcb3abcda..1f904cab358f0e1cabbb53eab340c8dd344b1d4e 100644 GIT binary patch delta 792 zcmZWmO>YuW6g~G1q=hIDZHlDm43)MN%kWj(g2tq#rD;+VgBoLWGleG^!!YDA)O5uk zaAU@Q;4d(4T)6NjxNv9U!o*E~f-5gWsnyO&=H7emednGx^DFu>miYbj%MVR}z>htA z(0rTNpt~RTzEWhiUiYNaFPD5>?2k4PwpyO6Ff*aI5OwT9%RPK0Ti%qcAwD6Ld?}Ue zwIt%|es?JQ%I|V$4T;r%>md$muY~-rdjY_FjtFD@+iTIxM8m@90%5@rcS3=+IwWYGU zM!{gd<9eR#8ISlTwj7vp;2_$Rj(a5c`Lh0Ju^6(42jBdkV*6PZ^Nb`?{~(Ptu0s!C zV2n(FMNF`SF_urUf-wYU2@y=bvN-WyXwOObpR_j=^LIn~XazZ}B9B{G2qi+9aBW-)fyy|7=_+BJppQ$^5PG*1BV?Gk&`QKp+`7rF zB#m%8NV9=TlCTjR3dD(!oeSj7IiabO_ys4M=bUVvIuRPg`|koZ-nh)%Wx^U~XP)Gl z-+K!@lADYaI6E7eP5^U%MNAgqN+%RJNIR+49V&Gt8;ADVU!o)k-mnE8!aq>!* z9!8GIW~}ne!VDsl3s@!0)EOBx7#Sp(flgs!V$cN943dltT8s?Zj12N1E+aDo%M?{U zMg~Qo090!7K2~u#9YzLaMg|qI7I8)fU9bwUNsK_@$vfDr9Mu>Z 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