Skip to content

Commit

Permalink
Add Actor::AddDeathItems
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Aug 3, 2024
1 parent dbd5879 commit d8052ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/RE/A/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ namespace RE

bool AddAnimationGraphEventSink(BSTEventSink<BSAnimationGraphEvent>* 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);
Expand Down
7 changes: 7 additions & 0 deletions src/RE/A/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ namespace RE
return func(this, a_power);
}

void Actor::AddDeathItems()
{
using func_t = decltype(&Actor::AddDeathItems);
static REL::Relocation<func_t> func{ RELOCATION_ID(36218, 37198) };
return func(this);
}

bool Actor::AddSpell(SpellItem* a_spell)
{
using func_t = decltype(&Actor::AddSpell);
Expand Down

0 comments on commit d8052ba

Please sign in to comment.