From 6a7750222db944788d48a3c15bd772e6cc8bb7df Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Sat, 19 Oct 2024 07:58:11 -0500 Subject: [PATCH] feat: `TESConditionItem` --- CommonLibF4/include/RE/Bethesda/TESCondition.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CommonLibF4/include/RE/Bethesda/TESCondition.h b/CommonLibF4/include/RE/Bethesda/TESCondition.h index 013ea95b..5cbe8b6a 100644 --- a/CommonLibF4/include/RE/Bethesda/TESCondition.h +++ b/CommonLibF4/include/RE/Bethesda/TESCondition.h @@ -80,11 +80,18 @@ namespace RE [[nodiscard]] bool IsTrue(TESObjectREFR* a_actionRef, TESObjectREFR* a_targetRef) { - using func_t = decltype(&TESConditionItem::IsTrue); + using func_t = bool(*)(TESConditionItem*, TESObjectREFR*, TESObjectREFR*); static REL::Relocation func{ REL::ID(2212008) }; return func(this, a_actionRef, a_targetRef); } + [[nodiscard]] bool IsTrue(ConditionCheckParams& a_params) + { + using func_t = bool(*)(TESConditionItem*, ConditionCheckParams&); + static REL::Relocation func{ REL::ID(2212009) }; + return func(this, a_params); + } + // members TESConditionItem* next; // 00 CONDITION_ITEM_DATA data; // 08