|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|