From 7a116414bb486727a692cc2e356c389a8ea54132 Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Mon, 18 Aug 2025 23:57:52 +0200 Subject: [PATCH] Merged in the QuickLoot patch --- Enderal - Forgotten Stories.esm | Bin 13253845 -> 13254205 bytes Enderal SE v2.1.4 Changelog.txt | 1 + scripts/_00e_quicklootpatch.pex | Bin 0 -> 2270 bytes scripts/scriptarchiveorder.txt | 1 + source/scripts/_00e_quicklootpatch.psc | 57 +++++++++++++++++++++++++ 5 files changed, 59 insertions(+) create mode 100644 scripts/_00e_quicklootpatch.pex create mode 100644 source/scripts/_00e_quicklootpatch.psc diff --git a/Enderal - Forgotten Stories.esm b/Enderal - Forgotten Stories.esm index da85d307a436a3d5cc7635d2d2afa7fe1da8803b..92dc232188e7c52c5595335ab2bb7c980fba1d85 100644 GIT binary patch delta 866 zcmX}l`BT(&9LMqRmjn#0G_u09l#XYX6?UH%vUn6Il-OZKD?%>fuEA2F=2g$=AUry@ zJ9X74(aN&bEe$%Xe(Z;4`k`O@BbsT(KG;m}na9j~-ZQV)`}e1NlB;F5TqD=Yby6d9Y|^8Czxt^@&A^X;E`;s%>>cCX=nptXZ4PrdFi7QrW)d z-u9ksw5+iQ&+ODy*mztr%sheQEq9zNbYdHSY4i2T-!J?iu*f< zi@`U+x54q?MDSgqb9kg9j?;zT4vthzh`S4a9vxX9k8cR6aZy!Ae@k&B7!AG;eh7XH SehN+oKL@`QT8h7J-uf@8uQNRW delta 678 zcmWN~XIqT{0D$2R3Y9%GE90@VNA})(?-jE5Dx!EC;~;y_jEJ&wC@GsC;PP8smk-_# z_vgFfUt!$uzlCx6sj+{GVq%hVk&slA>QX~uB~EHeEvYT>k|2pvN9syFsV@zrp)``l z(nOj{GifeK(n4BFD`_olq^%@NiljnJsf< zuFRA9vOpHfB3Ud;WT`BZ<+4In$|_kc8L~#!$~wuE^|C=W$|l(?TV$(jlkKuYcFHc< zEqi3I?34YHCE0R74oZ$3lEacKd2&RKigHZCa$HWxNjW7EIW1@8tmMl%IWHIFqFj>8 zaz(DnHMuS~S0~-JU diff --git a/Enderal SE v2.1.4 Changelog.txt b/Enderal SE v2.1.4 Changelog.txt index fe5e68105..b6c9f4be2 100644 --- a/Enderal SE v2.1.4 Changelog.txt +++ b/Enderal SE v2.1.4 Changelog.txt @@ -19,6 +19,7 @@ Beware, spoilers ahead! - Restored Tharael's forehead tattoo lost during the initial facegen conversion. - Fixed Battle of Treomar opponents permanently disappearing after a game if no dice were cast. - Entropic Blood: fixed inability to select a strong enemy as an attack target, fixed not working in god mode. +- With installed QuickLoot RE/EE/IE, contents of hidden slots and additional gold appear in the container and the loot menu after a short delay with a sound notification (merged in the QuickLoot patch). - Added arrow crafting recipes. - Revised alchemy. Consistency and distribution changes across the board due to lack of a coherent alchemy system prior to this patch, such as: diff --git a/scripts/_00e_quicklootpatch.pex b/scripts/_00e_quicklootpatch.pex new file mode 100644 index 0000000000000000000000000000000000000000..b209517fa72e25e45123ee7b7436fa2791bd2a2a GIT binary patch literal 2270 zcmZ`(*-{%v6g@2oNeGG6Kmgk)#6VUoVGMW-BtY1zuyIUcKcrIBplQ&=qMOW&Lh&Pc zPAWf=pU7)IBrneCo*A*2=vKkq&fWS*|Gxd}pKJyK{51dk<2Q^R)oNQu-?jb5yM3*r zS8mj3&Yg!1l(sxiw}Y_Vs-jn>`rL)Ds@TI2Ve;q~18Wg>ZeT1~+>y~?bE(kN(8}{8Un{qTeAD+lI(uKs6B$U= zkn1hq4N-L*JMU&whEe#|kD9wS@vx<%@aR`JK=DKeXDvUBFyT0xT1Bp}WU!%CJ2Y0H zTQ+Un&d-){{Mf{e#W?OKO|D9_UE`hfEV6XwGxPXo*@#efoOmM}>2@2D4vyVWqT)C^ zy5-esbsHJ6Lw`^Yg(M02xD3o#TSs?phv7T7LGGni5(USJz0lsq>OlIxvsO(z11eqG6G>`(EEl$R9?5uTC+$-Bu0r(AB8vM%6$@?LdVzWVO)_ z_}Wo5v>f76F@v7nM1&VU=_U=t53BK8R3mLGgy*v1pZL;CY7~{ch>Mi8;zqGv)@p;( zsn{x-dF{^08RyX#R}E77r6+xoDhtRNrlsanba%*<`W91VDOHw{H=rMXN*&M8W4=D7 zKbek-Ay4O-Q9RytLqly8WZxDSDGqXZ--O%yig7in> zd%Ye6?j_3f?~y5+x=o&B+CEBqp=ocwgN1d^Gg0&!^NO#i?5Rc|&-gTkvB|H;?*r)K zcU~Z4eoc&$O_dx_M&3#R1$0{}p@&kjnFI<9STzqk!3gCe${6Lom4~=4lbFO*M;_t2 zOymD#1~d2+pHaTBl0iYBXj=1={hL!+jeomfrn8^29g%7;`eIMNos{}u>gmD|RSPaK z@7|R$h+$?Yk$!H~lNu$AvT_nBQ!!n0+&P|s<+EIV91~ps0o~;>frkQ<0%P{B0|FDN zK0@6%v*WmD{tM<-1wKyVB7>>^PWt=zX?ku{;1hvI0uL-IgXy#YBQrN6obK9egcy@) zxvMnr>1TQ2&PR+39y`m-&tsq9-DkO>0cQ#R@*23pT*m4B>YA6N>9iG?Bf5gesG-iY z%#$e#c#1`yc!~Bhp26YCo-@8e|0;cJ$@!kdC;3|7u{|HVJ*Qq0s8i!b>NgI^DZa58 z^ESIzU_oG>pcQH{XoXH<>%$4wTyx!G7A>YvU`b$6pg&Grx~s{C0IMyhP3GBPinf5m zcGf#&%Q#kN|5ci-$I7d0yky*6vwhb-#T+vuDL9=ZriF{NIkqXhZ97{MW|O@|mtf+m f!5X6M2$U0=W|-V1EYCBH>|RB<^7EMg@!$UdDj=TZ literal 0 HcmV?d00001 diff --git a/scripts/scriptarchiveorder.txt b/scripts/scriptarchiveorder.txt index b8442443b..98044c109 100644 --- a/scripts/scriptarchiveorder.txt +++ b/scripts/scriptarchiveorder.txt @@ -4806,3 +4806,4 @@ scripts\ccbgs_arpressureplatescript.pex scripts\ccbgs_arspiketrapscript.pex scripts\ccbgs_arswitchscript.pex scripts\_00e_blockrefactivationforothers.pex +scripts\_00e_quicklootpatch.pex diff --git a/source/scripts/_00e_quicklootpatch.psc b/source/scripts/_00e_quicklootpatch.psc new file mode 100644 index 000000000..d65037e17 --- /dev/null +++ b/source/scripts/_00e_quicklootpatch.psc @@ -0,0 +1,57 @@ +ScriptName _00E_QuickLootPatch Extends ReferenceAlias + +; 2.1.4 Eddoursul: QuickLoot RE, EE, and IE compatibility + +Event OnInit() + If SKSE.GetVersion() <= 0 + return + EndIf + If Game.GetLightModByName("Enderal QuickLoot Patch.esp") < 65535 + UnregisterForMenu("LootMenu") + return + EndIf + RegisterForMenu("LootMenu") +EndEvent + +Event OnPlayerLoadGame() + OnInit() +EndEvent + +Function OnMenuOpen(String MenuName) + + ObjectReference lootMenuRef = Game.GetCurrentCrosshairRef() + + If ! lootMenuRef + Return + EndIf + + Container baseContainer = lootMenuRef.GetBaseObject() as Container + + If ! baseContainer || lootMenuRef.GetActorOwner() == Player + Return + EndIf + + Bool bHasSlot = _00E_ChestsWithHiddenSlots.ToArray().Find(baseContainer) >= 0 + + If bHasSlot || lootMenuRef.GetItemCount(Gold001) >= 5 + If lootMenuRef == Game.GetCurrentCrosshairRef() && ! lootMenuRef.GetItemCount(_00E_HiddenSlotChecked) && UI.IsMenuOpen("LootMenu") + lootMenuRef.AddItem(_00E_HiddenSlotChecked, 1, True) + + If bHasSlot + ContainerBonusControl.OpenHiddenSlot(lootMenuRef, True) + Else + ContainerBonusControl.IncrementGold(lootMenuRef) + EndIf + EndIf + EndIf + +EndFunction + +ActorBase Property Player Auto + +FormList Property _00E_ChestsWithHiddenSlots Auto + +MiscObject Property _00E_HiddenSlotChecked Auto +MiscObject Property Gold001 Auto + +_00E_ContainerBonusControl Property ContainerBonusControl Auto