From d8052baf5d6cb0f6584dfa9d39f52d6b458b23d1 Mon Sep 17 00:00:00 2001 From: powerof3 <32599957+powerof3@users.noreply.github.com> Date: Sun, 4 Aug 2024 00:32:17 +0530 Subject: [PATCH] Add `Actor::AddDeathItems` --- include/RE/A/Actor.h | 1 + src/RE/A/Actor.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/include/RE/A/Actor.h b/include/RE/A/Actor.h index efaf5174e..5e79f3792 100644 --- a/include/RE/A/Actor.h +++ b/include/RE/A/Actor.h @@ -490,6 +490,7 @@ namespace RE bool AddAnimationGraphEventSink(BSTEventSink* a_sink) const; void AddCastPower(SpellItem* a_power); + void AddDeathItems(); bool AddSpell(SpellItem* a_spell); void AddToFaction(TESFaction* a_faction, std::int8_t a_rank); void AddWornOutfit(BGSOutfit* a_outfit, bool a_forceUpdate); diff --git a/src/RE/A/Actor.cpp b/src/RE/A/Actor.cpp index 19034c3c2..f3eed92e4 100644 --- a/src/RE/A/Actor.cpp +++ b/src/RE/A/Actor.cpp @@ -76,6 +76,13 @@ namespace RE return func(this, a_power); } + void Actor::AddDeathItems() + { + using func_t = decltype(&Actor::AddDeathItems); + static REL::Relocation func{ RELOCATION_ID(36218, 37198) }; + return func(this); + } + bool Actor::AddSpell(SpellItem* a_spell) { using func_t = decltype(&Actor::AddSpell);