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 May 11, 2024
1 parent 5a571bf commit 0ac685e
Show file tree
Hide file tree
Showing 8 changed files with 1,572 additions and 1,573 deletions.
94 changes: 47 additions & 47 deletions Plugin/src/Forms/Forms.h
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
#pragma once

namespace Forms
{
static constexpr char PLUGIN_NAME[] = "BakaAutoLockpicking.esm";

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

inline 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");
}
}
}
}
#pragma once

namespace Forms
{
static constexpr char PLUGIN_NAME[] = "BakaAutoLockpicking.esm";

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

inline 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");
}
}
}
}
Loading

0 comments on commit 0ac685e

Please sign in to comment.