fix: hook vanilla void bag logic to fix various issues

- rewrite most logic
- remove GlobalItem
- use a hook for changing StorageHeart.RightClick instead of manual IL edit
This commit is contained in:
2022-07-04 12:00:19 +01:00
parent 2c54d4575c
commit ff2bf51bc0
15 changed files with 267 additions and 117 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\tModLoader.targets" />
<Import Project="../tModLoader.targets" />
<PropertyGroup>
<AssemblyName>MagicStorageVoidBag</AssemblyName>
<TargetFramework>net6.0</TargetFramework>
@ -12,10 +12,10 @@
</ItemGroup>
<ItemGroup>
<Reference Include="MagicStorage">
<HintPath>..\Mod Libraries\MagicStorage.dll</HintPath>
<HintPath>../Mod Libraries/MagicStorage.dll</HintPath>
</Reference>
<Reference Include="MMHOOK_MagicStorage">
<HintPath>lib\MMHOOK_MagicStorage.dll</HintPath>
<Reference Include="MagicStorageHooks">
<HintPath>lib\MagicStorageHooks.dll</HintPath>
</Reference>
</ItemGroup>
</Project>