surely nothing important

This commit is contained in:
ALittlePatate
2022-05-08 17:11:38 +02:00
parent e1117d68e1
commit 4a2515e238
3 changed files with 13 additions and 10 deletions

View File

@@ -101,5 +101,8 @@
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Settings\Settings.cs" /> <Compile Include="Settings\Settings.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

@@ -5,21 +5,19 @@ namespace DevourClient.Hooks
{ {
public class Hooks public class Hooks
{ {
[HarmonyPatch(typeof(NolanBehaviour))] /*
[HarmonyPatch(nameof(NolanBehaviour.IsCarryingFirstAidOnLocalCharacter))] //annotation boiler plate to tell Harmony what to patch. Refer to docs. [HarmonyPatch(typeof(Photon.Bolt.BoltLauncher))]
static class NolanBehaviour_IsCarryingFirstAidOnLocalCharacter_Patch [HarmonyPatch(nameof(Photon.Bolt.BoltLauncher.StartServer))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class Photon_Bolt_BoltLauncher_StartServer_Patch
{ {
static void Postfix(ref bool __result) static void Prefix(ref Photon.Bolt.BoltConfig boltconfig, string scene)
{ {
Load settings = new Load(); MelonLoader.MelonLogger.Msg("serverConnectionLimit : " + boltconfig.serverConnectionLimit);
if (settings._IsCarryingFirstAidOnLocalCharacter) boltconfig.serverConnectionLimit = 20;
{
__result = true;
}
return; return;
} }
} }
*/
[HarmonyPatch(typeof(Horror.Menu))] [HarmonyPatch(typeof(Horror.Menu))]
[HarmonyPatch(nameof(Horror.Menu.SetupPerk))] //annotation boiler plate to tell Harmony what to patch. Refer to docs. [HarmonyPatch(nameof(Horror.Menu.SetupPerk))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.

View File

@@ -26,6 +26,8 @@ namespace DevourClient
public override void OnUpdate() public override void OnUpdate()
{ {
Photon.Bolt.BoltConfig boltconfig = new Photon.Bolt.BoltConfig();
boltconfig.serverConnectionLimit = 20;
if (Input.GetKeyDown(KeyCode.Insert)) if (Input.GetKeyDown(KeyCode.Insert))
{ {