4
Fork 0

Moved GetPlayerClassNameGlobal() to EnderalFunctions

development
Eddoursul 4 months ago
parent eeb35a7dae
commit 781988d6d6
  1. BIN
      SKSE/Plugins/EnderalSE.dll
  2. BIN
      scripts/_00E_AffinityControl.pex
  3. BIN
      scripts/enderalfunctions.pex
  4. 2
      source/Enderal DLL/src/Patches/HeroMenuPatch.cpp
  5. 6
      source/scripts/_00E_AffinityControl.psc
  6. 6
      source/scripts/enderalfunctions.psc

BIN
SKSE/Plugins/EnderalSE.dll (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -100,7 +100,7 @@ void HeroMenuPatch::FillMenuValues()
uiMovie->Invoke("heromenu_mc.SetStringValues", nullptr, args, 2);
RE::BSTSmartPointer<RE::BSScript::IStackCallbackFunctor> stackCallback{ new ScriptClassNameCallback };
RE::BSScript::Internal::VirtualMachine::GetSingleton()->DispatchStaticCall("_00E_AffinityControl", "GetPlayerClassNameGlobal", RE::MakeFunctionArguments(), stackCallback);
RE::BSScript::Internal::VirtualMachine::GetSingleton()->DispatchStaticCall("EnderalFunctions", "GetPlayerClassNameGlobal", RE::MakeFunctionArguments(), stackCallback);
RE::GFxValue args2[33];
args2[0].SetNumber(playerAV->GetBaseActorValue(RE::ActorValue::kHealth));

@ -464,12 +464,6 @@ String Function GetPlayerClassName()
EndIf
EndFunction
String Function GetPlayerClassNameGlobal() Global
{Called by EnderalSE.dll}
Quest AffinityQuest = Game.GetFormFromFile(0x1597B, "Enderal - Forgotten Stories.esm") as Quest;
return (AffinityQuest.GetAlias(0) as _00E_AffinityControl).GetPlayerClassName()
endfunction
;=====================================================================================
; PROPERTIES

@ -29,3 +29,9 @@ bool function IsDLLLoaded() global
int iVer = SKSE.GetPluginVersion("EnderalSE")
return iVer > 0
endfunction
String Function GetPlayerClassNameGlobal() Global
{Called by EnderalSE.dll}
Quest AffinityQuest = Game.GetFormFromFile(0x1597B, "Enderal - Forgotten Stories.esm") as Quest
return (AffinityQuest.GetAlias(0) as _00E_AffinityControl).GetPlayerClassName()
endfunction

Loading…
Cancel
Save