Note that this can also be used to open some locks that are intended to be un-pickable (locks that requires a key or are "broken") so you probably should be careful not to jump ahead to quest locations you're not supposed to visit yet.
For other modders (and anyone curious)
Full Source available on Github. It's not amazing code, but it works and it compiles without errors (because I'm hiding several hundred lines of warnings caused by BepInEx requesting a version of the system libraries that does not exist.) I used IL2CPPDumper to generate a Dummy TG.Main.dll that is be used as a reference in the.csproj file so the compiler is aware of all the object names in the game code.
Installation:
- Download and install pre-configured BepInEx v6.0.0
- Run the game at least once without the mod, it will take a while to load for the first time
- Download & extract zip, place NepEasyLockpicking.dll under <GameFolder>\BepInEx\plugins
(e.g. "C:\Program Files (x86)\Steam\steamapps\common\Tainted Grail FoA\BepInEx\plugins")
Troubleshooting:
- If you installed a version of Bepinex that was not pre-configured you need to disable the Bepinex UnityLogListener or the game will crash on startup. https://github.com/BepInEx/BepInEx/issues/474 - Thanks to Omni1111