Skip to content

Commit

Permalink
chore: style formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shad0wshayd3 authored and github-actions[bot] committed Nov 21, 2024
1 parent d48b140 commit 1a94569
Show file tree
Hide file tree
Showing 6 changed files with 1,209 additions and 1,209 deletions.
66 changes: 33 additions & 33 deletions src/Forms/Forms.h
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
#pragma once

namespace Forms
{
static constexpr auto PLUGIN_NAME{ "BakaAutoLockpicking.esm"sv };

inline RE::BGSListForm* BakaAutoLock_Perks_Base{ nullptr };
inline RE::BGSListForm* BakaAutoLock_Perks_Unbreakable{ nullptr };
inline RE::BGSListForm* BakaAutoLock_Perks_WaxKey{ nullptr };
inline RE::BGSListForm* BakaAutoLock_Items_Lockpick{ nullptr };
inline RE::BGSListForm* BakaAutoHack_Perks_Base{ nullptr };
inline RE::BGSListForm* BakaAutoHack_Perks_WaxKey{ nullptr };
inline RE::ActorValueInfo* BakaAutoHack_Attempts{ nullptr };
inline RE::ActorValueInfo* LGND_LockPickSweetSpot{ nullptr };

static void Register()
{
if (auto TESDataHandler = RE::TESDataHandler::GetSingleton())
{
if (TESDataHandler->LookupLoadedLightModByName(PLUGIN_NAME))
{
BakaAutoLock_Perks_Base = TESDataHandler->LookupForm<RE::BGSListForm>(0x802, PLUGIN_NAME);
BakaAutoLock_Perks_Unbreakable = TESDataHandler->LookupForm<RE::BGSListForm>(0x803, PLUGIN_NAME);
BakaAutoLock_Perks_WaxKey = TESDataHandler->LookupForm<RE::BGSListForm>(0x804, PLUGIN_NAME);
BakaAutoLock_Items_Lockpick = TESDataHandler->LookupForm<RE::BGSListForm>(0x805, PLUGIN_NAME);
BakaAutoHack_Perks_Base = TESDataHandler->LookupForm<RE::BGSListForm>(0x806, PLUGIN_NAME);
BakaAutoHack_Perks_WaxKey = TESDataHandler->LookupForm<RE::BGSListForm>(0x807, PLUGIN_NAME);
BakaAutoHack_Attempts = TESDataHandler->LookupForm<RE::ActorValueInfo>(0x900, PLUGIN_NAME);
LGND_LockPickSweetSpot = TESDataHandler->LookupForm<RE::ActorValueInfo>(0x1F3CAB, "Fallout4.esm"sv);
}
}
}
}
#pragma once

namespace Forms
{
static constexpr auto PLUGIN_NAME{ "BakaAutoLockpicking.esm"sv };

inline RE::BGSListForm* BakaAutoLock_Perks_Base{ nullptr };
inline RE::BGSListForm* BakaAutoLock_Perks_Unbreakable{ nullptr };
inline RE::BGSListForm* BakaAutoLock_Perks_WaxKey{ nullptr };
inline RE::BGSListForm* BakaAutoLock_Items_Lockpick{ nullptr };
inline RE::BGSListForm* BakaAutoHack_Perks_Base{ nullptr };
inline RE::BGSListForm* BakaAutoHack_Perks_WaxKey{ nullptr };
inline RE::ActorValueInfo* BakaAutoHack_Attempts{ nullptr };
inline RE::ActorValueInfo* LGND_LockPickSweetSpot{ nullptr };

static void Register()
{
if (auto TESDataHandler = RE::TESDataHandler::GetSingleton())
{
if (TESDataHandler->LookupLoadedLightModByName(PLUGIN_NAME))
{
BakaAutoLock_Perks_Base = TESDataHandler->LookupForm<RE::BGSListForm>(0x802, PLUGIN_NAME);
BakaAutoLock_Perks_Unbreakable = TESDataHandler->LookupForm<RE::BGSListForm>(0x803, PLUGIN_NAME);
BakaAutoLock_Perks_WaxKey = TESDataHandler->LookupForm<RE::BGSListForm>(0x804, PLUGIN_NAME);
BakaAutoLock_Items_Lockpick = TESDataHandler->LookupForm<RE::BGSListForm>(0x805, PLUGIN_NAME);
BakaAutoHack_Perks_Base = TESDataHandler->LookupForm<RE::BGSListForm>(0x806, PLUGIN_NAME);
BakaAutoHack_Perks_WaxKey = TESDataHandler->LookupForm<RE::BGSListForm>(0x807, PLUGIN_NAME);
BakaAutoHack_Attempts = TESDataHandler->LookupForm<RE::ActorValueInfo>(0x900, PLUGIN_NAME);
LGND_LockPickSweetSpot = TESDataHandler->LookupForm<RE::ActorValueInfo>(0x1F3CAB, "Fallout4.esm"sv);
}
}
}
}
Loading

0 comments on commit 1a94569

Please sign in to comment.