mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
start improving message sending system (60%)
This commit is contained in:
1 parent
9d8cbf3746
commit
b14b491c0a
41 files changed
+402
-196
No files matched your search
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace EHR.Patches;
|
||||
@@ -25,7 +23,7 @@ public static class GameOptionsMapPickerPatch
|
||||
[HarmonyPrefix]
|
||||
public static void Postfix_Prefix(GameOptionsMapPicker __instance)
|
||||
{
|
||||
if (!__instance.AllMapIcons.ToArray().Any(x => x.Name == MapNames.Dleks))
|
||||
if (__instance.AllMapIcons.TrueForAll((Il2CppSystem.Predicate<MapIconByName>)(x => x.Name != MapNames.Dleks)))
|
||||
{
|
||||
__instance.AllMapIcons.Insert((int)MapNames.Dleks, new MapIconByName
|
||||
{
|
||||
@@ -37,7 +35,7 @@ public static class GameOptionsMapPickerPatch
|
||||
}
|
||||
if (SubmergedCompatibility.Loaded)
|
||||
{
|
||||
if (!__instance.AllMapIcons.ToArray().Any(x => x.Name == (MapNames)6))
|
||||
if (__instance.AllMapIcons.TrueForAll((Il2CppSystem.Predicate<MapIconByName>)(x => x.Name != (MapNames)6)))
|
||||
{
|
||||
__instance.AllMapIcons.Insert((int)(MapNames)6, new MapIconByName
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user