diff --git a/scripts/enderalfunctions.pex b/scripts/enderalfunctions.pex index e4ec281d..5728694f 100644 Binary files a/scripts/enderalfunctions.pex and b/scripts/enderalfunctions.pex differ diff --git a/source/Enderal DLL/src/PapyrusFunctions.h b/source/Enderal DLL/src/PapyrusFunctions.h index b685bc9a..7c4ac5e5 100644 --- a/source/Enderal DLL/src/PapyrusFunctions.h +++ b/source/Enderal DLL/src/PapyrusFunctions.h @@ -120,31 +120,6 @@ namespace Papyrus::PapyrusFunctions return ComputeNeededExpPoints(CurrentLevel, Slope, Mult, fExpAcc, fExpAcc_Level20, fExpAcc_Level30, fExpAcc_Level40); } - bool IsInRegion(RE::StaticFunctionTag*, RE::TESForm* playerRegion) - { - if (!playerRegion) { - return false; - } - - auto* parentCell = RE::PlayerCharacter::GetSingleton()->parentCell; - - if (!parentCell) { - return false; - } - - auto regions = parentCell->GetRegionList(false); - - if (regions) { - for (auto it = regions->begin(); it != regions->end(); it++) { - if ((*it) && (*it)->formID == playerRegion->formID) { - return true; - } - } - } - - return false; - } - uint32_t MoveItemsToCountByKeyword(RE::StaticFunctionTag*, RE::TESObjectREFR* a_sourceRef, RE::TESObjectREFR* a_targetRef, RE::BGSKeyword* a_keyword, uint32_t a_count = 1) { const auto inv = a_sourceRef->GetInventory([&](RE::TESBoundObject& a_exform) { @@ -192,8 +167,6 @@ namespace Papyrus::PapyrusFunctions logger::info("{}", "Registered EnableDialogueQuitting"sv); BIND(ComputeNeededExp); logger::info("{}", "Registered ComputeNeededExp"sv); - BIND(IsInRegion); - logger::info("{}", "Registered IsInRegion"sv); BIND(MoveItemsToCountByKeyword); logger::info("{}", "Registered MoveItemsToCountByKeyword"sv); } diff --git a/source/scripts/enderalfunctions.psc b/source/scripts/enderalfunctions.psc index 4d37b025..310638f1 100644 --- a/source/scripts/enderalfunctions.psc +++ b/source/scripts/enderalfunctions.psc @@ -18,8 +18,6 @@ float function ComputeNeededExp(int CurrentLevel, float Slope, float Mult, float Function DisableDialogueQuitting() native global Function EnableDialogueQuitting() native global -bool function IsInRegion(Form region) native global - int function MoveItemsToCountByKeyword(ObjectReference sourceRef, ObjectReference targetRef, Keyword kword, int iCount = 1) native global bool function IsDLLLoaded() global