mirror of
https://github.com/chev2/RoR2-Mods.git
synced 2025-10-29 15:52:07 +00:00
UncappedConvergence: Update to latest game version
This commit is contained in:
parent
74c03d95fd
commit
cfbe00be8b
7 changed files with 87 additions and 117 deletions
|
|
@ -1,25 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30204.135
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RoR2-UncappedConvergence", "RoR2-UncappedConvergence\RoR2-UncappedConvergence.csproj", "{36053921-F3F1-4CE0-B8DF-A3EC05BB49A0}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{36053921-F3F1-4CE0-B8DF-A3EC05BB49A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{36053921-F3F1-4CE0-B8DF-A3EC05BB49A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{36053921-F3F1-4CE0-B8DF-A3EC05BB49A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{36053921-F3F1-4CE0-B8DF-A3EC05BB49A0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {F654F7C7-5B18-4361-8C08-C439360718C9}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<RootNamespace>RoR2_UncappedConvergence</RootNamespace>
|
||||
<AssemblyName>UncappedConvergence</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="0Harmony">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\0Harmony.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp.R2API.mm">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\monomod\Assembly-CSharp.R2API.mm.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="BepInEx">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\BepInEx.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="BepInEx.Harmony">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\BepInEx.Harmony.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="BepInEx.MonoMod.Loader">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\patchers\BepInEx.MonoMod.Loader\BepInEx.MonoMod.Loader.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="BepInEx.Preloader">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\BepInEx.Preloader.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MMHOOK_Assembly-CSharp">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\plugins\R2API\MMHOOK_Assembly-CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\Mono.Cecil.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil.Mdb">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\Mono.Cecil.Mdb.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil.Pdb">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\Mono.Cecil.Pdb.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil.Rocks">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\Mono.Cecil.Rocks.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MonoMod.RuntimeDetour">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\MonoMod.RuntimeDetour.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MonoMod.Utils">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\core\MonoMod.Utils.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="R2API">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\BepInEx\plugins\R2API\R2API.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\UnityEngine.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.CoreModule">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.Networking">
|
||||
<HintPath>H:\SteamLibrary\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\UnityEngine.Networking.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
using BepInEx;
|
||||
using RoR2;
|
||||
using MonoMod.Cil;
|
||||
|
||||
namespace ChevRoR
|
||||
{
|
||||
[BepInDependency("com.bepis.r2api")]
|
||||
[BepInPlugin("com.ChevRoR.UncappedConvergence", "Uncapped Convergence", "1.0.0")]
|
||||
public class UncappedConvergence : BaseUnityPlugin
|
||||
{
|
||||
public void Awake()
|
||||
{
|
||||
IL.RoR2.HoldoutZoneController.FocusConvergenceController.FixedUpdate += (il) =>
|
||||
{
|
||||
ILCursor c = new ILCursor(il);
|
||||
c.GotoNext(
|
||||
x => x.MatchCall<UnityEngine.Mathf>("Min")
|
||||
);
|
||||
c.Index -= 3;
|
||||
c.RemoveRange(6); // remove Mathf.min code
|
||||
};
|
||||
|
||||
Console.print("\'Uncapped Convergence\' mod loaded");
|
||||
}
|
||||
}
|
||||
}
|
||||
22
UncappedConvergence/UncappedConvergence.sln
Normal file
22
UncappedConvergence/UncappedConvergence.sln
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.31903.59
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UncappedConvergence", "UncappedConvergence\UncappedConvergence.csproj", "{00626815-D7B5-4F45-A14D-4EB6D5F9A3BF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{00626815-D7B5-4F45-A14D-4EB6D5F9A3BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{00626815-D7B5-4F45-A14D-4EB6D5F9A3BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{00626815-D7B5-4F45-A14D-4EB6D5F9A3BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{00626815-D7B5-4F45-A14D-4EB6D5F9A3BF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
using BepInEx;
|
||||
using MonoMod.Cil;
|
||||
using System.Security.Permissions;
|
||||
|
||||
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
|
||||
namespace Chev
|
||||
{
|
||||
[BepInDependency(R2API.R2API.PluginGUID)]
|
||||
[BepInPlugin(PluginGUID, PluginName, PluginVersion)]
|
||||
public class PluginUncappedConvergence : BaseUnityPlugin
|
||||
{
|
||||
public const string PluginGUID = PluginAuthor + "." + PluginName;
|
||||
public const string PluginAuthor = "Chev";
|
||||
public const string PluginName = "UncappedConvergence";
|
||||
public const string PluginVersion = "2.0.0";
|
||||
|
||||
public void Awake()
|
||||
{
|
||||
Logger.LogInfo("Hooking into HoldoutZoneController.FocusConvergenceController.FixedUpdate...");
|
||||
|
||||
IL.RoR2.HoldoutZoneController.FocusConvergenceController.FixedUpdate += (il) =>
|
||||
{
|
||||
ILCursor c = new ILCursor(il);
|
||||
c.GotoNext(
|
||||
x => x.MatchCall<UnityEngine.Mathf>("Min")
|
||||
);
|
||||
c.Index -= 3;
|
||||
c.RemoveRange(6); // remove Mathf.min code
|
||||
};
|
||||
|
||||
Logger.LogInfo("Hook finished, mod loaded");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BepInEx.Analyzers" Version="1.0.*">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="BepInEx.Core" Version="5.4.21" />
|
||||
<PackageReference Include="R2API.Items" Version="1.0.*" />
|
||||
<PackageReference Include="R2API.Language" Version="1.0.*" />
|
||||
<PackageReference Include="RiskOfRain2.GameLibs" Version="1.2.4-r.0" />
|
||||
<PackageReference Include="UnityEngine.Modules" Version="2019.4.26" />
|
||||
<PackageReference Include="MMHOOK.RoR2" Version="2022.9.20">
|
||||
<NoWarn>NU1701</NoWarn>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
7
UncappedConvergence/nuget.config
Normal file
7
UncappedConvergence/nuget.config
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="BepInEx" value="https://nuget.bepinex.dev/v3/index.json" />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
Loading…
Add table
Reference in a new issue