Adapt to 3.9
This commit is contained in:
parent
f8d2a1f943
commit
7a145e1105
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<Version>1.4.2</Version>
|
<Version>1.5.0</Version>
|
||||||
<Authors>CactusPie</Authors>
|
<Authors>bepis69</Authors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -13,36 +13,36 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Aki.Reflection">
|
<Reference Include="spt-reflection">
|
||||||
<HintPath>..\References\EFT_Managed\Aki.Reflection.dll</HintPath>
|
<HintPath>..\..\..\resources\spt-reflection.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Assembly-CSharp">
|
<Reference Include="Assembly-CSharp">
|
||||||
<HintPath>..\References\EFT_Managed\Assembly-CSharp.dll</HintPath>
|
<HintPath>..\..\..\resources\Assembly-CSharp.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Comfort">
|
<Reference Include="Comfort">
|
||||||
<HintPath>..\References\EFT_Managed\Comfort.dll</HintPath>
|
<HintPath>..\..\..\resources\Comfort.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Comfort.Unity">
|
<Reference Include="Comfort.Unity">
|
||||||
<HintPath>..\References\EFT_Managed\Comfort.Unity.dll</HintPath>
|
<HintPath>..\..\..\resources\Comfort.Unity.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="ItemComponent.Types">
|
<Reference Include="ItemComponent.Types">
|
||||||
<HintPath>..\References\EFT_Managed\ItemComponent.Types.dll</HintPath>
|
<HintPath>..\..\..\resources\ItemComponent.Types.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine">
|
<Reference Include="UnityEngine">
|
||||||
<HintPath>..\References\EFT_Managed\UnityEngine.dll</HintPath>
|
<HintPath>..\..\..\resources\UnityEngine.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.CoreModule">
|
<Reference Include="UnityEngine.CoreModule">
|
||||||
<HintPath>..\References\EFT_Managed\UnityEngine.CoreModule.dll</HintPath>
|
<HintPath>..\..\..\resources\UnityEngine.CoreModule.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.InputLegacyModule">
|
<Reference Include="UnityEngine.InputLegacyModule">
|
||||||
<HintPath>..\References\EFT_Managed\UnityEngine.InputLegacyModule.dll</HintPath>
|
<HintPath>..\..\..\resources\UnityEngine.InputLegacyModule.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using Aki.Reflection.Patching;
|
using SPT.Reflection.Patching;
|
||||||
using Comfort.Common;
|
using Comfort.Common;
|
||||||
using EFT;
|
using EFT;
|
||||||
using EFT.InventoryLogic;
|
using EFT.InventoryLogic;
|
||||||
@ -22,7 +22,7 @@ namespace CactusPie.ContainerQuickLoot
|
|||||||
|
|
||||||
[PatchPrefix]
|
[PatchPrefix]
|
||||||
public static bool PatchPrefix(
|
public static bool PatchPrefix(
|
||||||
ref GStruct414<GInterface324> __result,
|
ref GStruct414<GInterface339> __result,
|
||||||
object __instance,
|
object __instance,
|
||||||
Item item,
|
Item item,
|
||||||
TraderControllerClass controller,
|
TraderControllerClass controller,
|
||||||
@ -98,19 +98,19 @@ namespace CactusPie.ContainerQuickLoot
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
GStruct414<GClass2788> mergeResult = InteractionsHandlerClass.Merge(item, containedItem.Key, controller, simulate);
|
GStruct414<GClass2804> mergeResult = InteractionsHandlerClass.Merge(item, containedItem.Key, controller, simulate);
|
||||||
__result = new GStruct414<GInterface324>(mergeResult.Value);
|
__result = new GStruct414<GInterface339>(mergeResult.Value);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GClass2769 location = container.FindLocationForItem(item);
|
ItemAddressClass location = container.FindLocationForItem(item);
|
||||||
if (location == null)
|
if (location == null)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
GStruct414<GClass2786> moveResult = InteractionsHandlerClass.Move(item, location, controller, simulate);
|
GStruct414<GClass2802> moveResult = InteractionsHandlerClass.Move(item, location, controller, simulate);
|
||||||
if (moveResult.Failed)
|
if (moveResult.Failed)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
@ -118,7 +118,7 @@ namespace CactusPie.ContainerQuickLoot
|
|||||||
|
|
||||||
if (!moveResult.Value.ItemsDestroyRequired)
|
if (!moveResult.Value.ItemsDestroyRequired)
|
||||||
{
|
{
|
||||||
__result = moveResult.Cast<GClass2786, GInterface324>();
|
__result = moveResult.Cast<GClass2802, GInterface339>();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@ -213,7 +213,7 @@ namespace CactusPie.ContainerQuickLoot
|
|||||||
Inventory inventory,
|
Inventory inventory,
|
||||||
TraderControllerClass controller,
|
TraderControllerClass controller,
|
||||||
bool simulate,
|
bool simulate,
|
||||||
ref GStruct414<GInterface324> result)
|
ref GStruct414<GInterface339> result)
|
||||||
{
|
{
|
||||||
if (!ContainerQuickLootPlugin.AutoMergeStacksForNonLootContainers.Value)
|
if (!ContainerQuickLootPlugin.AutoMergeStacksForNonLootContainers.Value)
|
||||||
{
|
{
|
||||||
@ -237,14 +237,14 @@ namespace CactusPie.ContainerQuickLoot
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
GStruct414<GClass2788> mergeResult = InteractionsHandlerClass.Merge(item, targetItem, controller, simulate);
|
GStruct414<GClass2804> mergeResult = InteractionsHandlerClass.Merge(item, targetItem, controller, simulate);
|
||||||
|
|
||||||
if (!mergeResult.Succeeded)
|
if (!mergeResult.Succeeded)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = new GStruct414<GInterface324>(mergeResult.Value);
|
result = new GStruct414<GInterface339>(mergeResult.Value);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user