v0.1.5
This commit is contained in:
@@ -9,6 +9,7 @@ using Unity.Collections;
|
||||
|
||||
namespace MMOKitchen
|
||||
{
|
||||
|
||||
[HarmonyPatch(typeof(CreateBedrooms), "OnUpdate")]
|
||||
public class CreateBedrooms_Patch
|
||||
{
|
||||
@@ -62,4 +63,5 @@ namespace MMOKitchen
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,7 +9,8 @@ using KitchenData;
|
||||
|
||||
namespace MMOKitchen
|
||||
{
|
||||
[HarmonyPatch(typeof(CreateGarage), "OnUpdate")]
|
||||
|
||||
[HarmonyPatch(typeof(CreateGarage), "OnUpdate")]
|
||||
public class CreateGarage_Patch
|
||||
{
|
||||
public static bool Prefix(CreateGarage __instance)
|
||||
@@ -56,4 +57,5 @@ namespace MMOKitchen
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,12 +7,14 @@ using System.IO;
|
||||
namespace MMOKitchen
|
||||
{
|
||||
|
||||
|
||||
[HarmonyPatch(typeof(FeaturesFromTexture), "ActOn")]
|
||||
public class FeaturesFromTexture_Patch
|
||||
{
|
||||
public static void Prefix(NewFromTexture __instance)
|
||||
{
|
||||
__instance.SourceTexture = ResourceUtils.LoadTextureFromFile(Path.Combine(Application.streamingAssetsPath, "FeaturesFromTexture.png"));
|
||||
}
|
||||
}
|
||||
__instance.SourceTexture = Main.LoadImage("iVBORw0KGgoAAAANSUhEUgAAAB4AAAAQCAMAAAA25D/gAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAMUExURQD/ACQA/+nKIQAAAOiZT8gAAAAEdFJOU////wBAKqn0AAAACXBIWXMAAA6/AAAOvwE4BVMkAAAASUlEQVQoU52MyQ0AIAgEBfrv2StcYTXReSAyLE2u/Og2p7uAjTComihrZ32ITse9U5KuvKSh3kTFrMXSNTkxPV6wAUPgOOaqRToQCQU9rUN4jgAAAABJRU5ErkJggg==");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using UnityEngine;
|
||||
|
||||
namespace MMOKitchen
|
||||
{
|
||||
|
||||
[HarmonyPatch(typeof(LayoutBuilder), "BuildWallBetween")]
|
||||
public class LayoutBuilder_Patch
|
||||
{
|
||||
@@ -17,4 +18,5 @@ namespace MMOKitchen
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,6 +6,7 @@ using System.Reflection.Emit;
|
||||
|
||||
namespace MMOKitchen
|
||||
{
|
||||
|
||||
[HarmonyPatch(typeof(DiscordPlatform))]
|
||||
[HarmonyPatch("CreateNewLobby")]
|
||||
public static class DiscordPlatform_Patch
|
||||
@@ -20,4 +21,5 @@ namespace MMOKitchen
|
||||
return codes;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,8 +6,12 @@ using System.Reflection;
|
||||
using Unity.Entities;
|
||||
using KitchenLib.Utils;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
namespace MMOKitchen
|
||||
{
|
||||
|
||||
[HarmonyPatch(typeof(NewFromTexture), "ActOn")]
|
||||
public class NewFromTexture_Patch
|
||||
{
|
||||
@@ -16,8 +20,9 @@ namespace MMOKitchen
|
||||
PlayerManager playerManager = World.DefaultGameObjectInjectionWorld.GetExistingSystem<PlayerManager>();
|
||||
FieldInfo finfo = typeof(PlayerManager).GetField("MaxPlayers", BindingFlags.Instance | BindingFlags.Public);
|
||||
finfo.SetValue(playerManager, 12);
|
||||
|
||||
__instance.SourceTexture = ResourceUtils.LoadTextureFromFile(Path.Combine(Application.streamingAssetsPath, "NewFromTexture.png"));
|
||||
}
|
||||
}
|
||||
|
||||
__instance.SourceTexture = Main.LoadImage("iVBORw0KGgoAAAANSUhEUgAAAB4AAAAQCAMAAAA25D/gAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAhUExURe0cJIgAFTHf77eA6hbzSv9/J//yAIC66hY68//JDgAAANY41qIAAAALdFJOU/////////////8ASk8B8gAAAAlwSFlzAAAOvwAADr8BOAVTJAAAAF1JREFUKFOl0UkOgDAMQ9Gamdz/wMRuQCVIgOAtIuG/qih2qxA66d1A0KhE3/PoUgY08qSMSiNPm6M5jTxFnzkfnvLkIs87aOR5lReJeMqru2SNPD+zWbyhFb/TbAPTUQgZqLo2tAAAAABJRU5ErkJggg==");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -33,4 +33,5 @@ namespace MMOKitchen
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user