Skip to content

Commit c87fd36

Browse files
authored
feat: IDs and namespace funcs. (#50)
1 parent 59b0f96 commit c87fd36

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

include/RE/A/AIFormulas.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
namespace AIFormulas
6+
{
7+
inline float GetBarterValue(float a_baseValue, float a_charisma, bool a_selling, TESObjectREFR* a_refTarget)
8+
{
9+
using func_t = decltype(&AIFormulas::GetBarterValue);
10+
static REL::Relocation<func_t> func{ ID::AIFormulas::GetBarterValue };
11+
return func(a_baseValue, a_charisma, a_selling, a_refTarget);
12+
}
13+
}
14+
}

include/RE/Fallout.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "RE/A/ACTOR_VISIBILITY_MASK.h"
1212
#include "RE/A/ADDON_DATA.h"
1313
#include "RE/A/AIDATA_GAME.h"
14+
#include "RE/A/AIFormulas.h"
1415
#include "RE/A/AIProcess.h"
1516
#include "RE/A/AITimeStamp.h"
1617
#include "RE/A/AITimer.h"

include/RE/IDs.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ namespace RE::ID
8686
inline constexpr REL::ID Singleton{ 2189587 };
8787
}
8888

89+
namespace AIFormulas
90+
{
91+
inline constexpr REL::ID GetBarterValue{ 2208969 };
92+
}
93+
8994
namespace AIProcess
9095
{
9196
inline constexpr REL::ID GetCurrentAmmo{ 2232300 };
@@ -369,6 +374,7 @@ namespace RE::ID
369374
inline constexpr REL::ID GetHackDifficultyLockLevel{ 2197777 };
370375
inline constexpr REL::ID IsTerminalRefInUse{ 2197779 };
371376
inline constexpr REL::ID Show{ 2197776 };
377+
inline constexpr REL::ID Activate{ 2197778 };
372378
}
373379

374380
namespace bhkNPCollisionObject
@@ -930,7 +936,7 @@ namespace RE::ID
930936

931937
namespace GamePlayFormulas
932938
{
933-
inline constexpr REL::ID CanHackGateCheck{ 269668 };
939+
inline constexpr REL::ID CanHackGateCheck{ 2209069 };
934940
inline constexpr REL::ID CanPickLockGateCheck{ 2209066 };
935941
inline constexpr REL::ID GetExperienceReward{ 2209076 };
936942
inline constexpr REL::ID GetLockXPReward{ 2209070 };
@@ -940,6 +946,7 @@ namespace RE::ID
940946
inline constexpr REL::ID GetPartialPickAngle{ 2209083 };
941947
inline constexpr REL::ID GetPickBreakSeconds{ 2209084 };
942948
inline constexpr REL::ID GetHackingWordCount{ 2209067 };
949+
inline constexpr REL::ID CalculateItemValue{ 2209074 };
943950
}
944951

945952
namespace GameScript

0 commit comments

Comments
 (0)