Skip to content

Commit

Permalink
Merge pull request #86 from TESRSkywind/dev
Browse files Browse the repository at this point in the history
Add Actor::RemoveFromFaction
  • Loading branch information
powerof3 authored Sep 10, 2023
2 parents ff2afea + ae343c6 commit d755bca
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 @@ -596,6 +596,7 @@ namespace RE
void RemoveAnimationGraphEventSink(BSTEventSink<BSAnimationGraphEvent>* a_sink) const;
void RemoveCastScroll(SpellItem* a_spell, MagicSystem::CastingSource a_source);
void RemoveExtraArrows3D();
void RemoveFromFaction(TESFaction* a_faction);
void RemoveOutfitItems(BGSOutfit* a_outfit);
bool RemoveSpell(SpellItem* a_spell);
std::int32_t RequestDetectionLevel(Actor* a_target, DETECTION_PRIORITY a_priority = DETECTION_PRIORITY::kNormal);
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 @@ -925,6 +925,13 @@ namespace RE
extraList.RemoveByType(ExtraDataType::kAttachedArrows3D);
}

void Actor::RemoveFromFaction(RE::TESFaction* a_faction)
{
using func_t = decltype(&Actor::RemoveFromFaction);
REL::Relocation<func_t> func{ RELOCATION_ID(36680, 37688) };
return func(this, a_faction);
}

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

0 comments on commit d755bca

Please sign in to comment.