mirror of
				https://github.com/chev2/RoR2-Mods.git
				synced 2025-10-30 08:11:54 +00:00 
			
		
		
		
	RoR2-UncappedConvergence Initial Commit
This commit is contained in:
		
							parent
							
								
									5cb7ba41ea
								
							
						
					
					
						commit
						1d7e7b6621
					
				
					 3 changed files with 121 additions and 0 deletions
				
			
		
							
								
								
									
										25
									
								
								RoR2-UncappedConvergence/RoR2-UncappedConvergence.sln
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								RoR2-UncappedConvergence/RoR2-UncappedConvergence.sln
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
|  | ||||
| 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 | ||||
|  | @ -0,0 +1,65 @@ | |||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||
| 
 | ||||
|   <PropertyGroup> | ||||
|     <TargetFramework>netstandard2.0</TargetFramework> | ||||
|     <RootNamespace>RoR2_UncappedConvergence</RootNamespace> | ||||
|   </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> | ||||
|  | @ -0,0 +1,31 @@ | |||
| using BepInEx; | ||||
| using BepInEx.Configuration; | ||||
| using RoR2; | ||||
| using UnityEngine; | ||||
| using Mono.Cecil.Cil; | ||||
| using MonoMod.Cil; | ||||
| using System.Runtime.CompilerServices; | ||||
| using R2API.Utils; | ||||
| 
 | ||||
| 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"); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Chev
						Chev