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="Settings\Settings.cs" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -5,21 +5,19 @@ namespace DevourClient.Hooks
{
public class Hooks
{
[HarmonyPatch(typeof(NolanBehaviour))]
[HarmonyPatch(nameof(NolanBehaviour.IsCarryingFirstAidOnLocalCharacter))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class NolanBehaviour_IsCarryingFirstAidOnLocalCharacter_Patch
/*
[HarmonyPatch(typeof(Photon.Bolt.BoltLauncher))]
[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();
if (settings._IsCarryingFirstAidOnLocalCharacter)
{
__result = true;
}
MelonLoader.MelonLogger.Msg("serverConnectionLimit : " + boltconfig.serverConnectionLimit);
boltconfig.serverConnectionLimit = 20;
return;
}
}
*/
[HarmonyPatch(typeof(Horror.Menu))]
[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()
{
Photon.Bolt.BoltConfig boltconfig = new Photon.Bolt.BoltConfig();
boltconfig.serverConnectionLimit = 20;
if (Input.GetKeyDown(KeyCode.Insert))
{