11 Commits
Author SHA1 Message Date
Daemon 04711c4369 Merge pull request #25 from MoltenMods/2021
Added Reactor back
2021-04-14 12:30:46 +01:00
Daemon f0010bf13e Built project 2021-04-14 12:25:01 +01:00
Daemon 1e7bc25ba8 Revert "Change regions after ServerManager.LoadServers instead of on game load"
This reverts commit d5de86c1e8, reversing
changes made to 7c1e2533b2.
2021-04-14 12:19:58 +01:00
Daemon d5de86c1e8 Change regions after ServerManager.LoadServers instead of on game load 2021-04-14 12:14:51 +01:00
Daemon 7c1e2533b2 Change regions after ServerManager.LoadServers instead of on game load 2021-04-14 12:11:16 +01:00
Daemon 913a02ddb6 Merge pull request #23 from MoltenMods/2021
Updated code for Reactor 0.4.0-ci.53
2021-04-13 19:09:07 +01:00
Daemon 1da6af54a9 Merge branch 'master' into 2021 2021-04-13 19:08:56 +01:00
Daemon e26fbccdb9 Updated code for Reactor 0.4.0-ci.53 2021-04-13 18:59:19 +01:00
Daemon 6f8a657fd0 Merge pull request #21 from MoltenMods/2021-pre
Updated code to work with 2021.4.12s
2021-04-13 14:02:27 +01:00
Daemon 5a4d501b9e Updated code to work with 2021.4.12s 2021-04-13 14:01:13 +01:00
Daemon ea4be527b7 Merge pull request #20 from MoltenMods/2021
Merge features from 2021 branch into 2021-pre branch
2021-04-13 13:47:17 +01:00
5 changed files with 19 additions and 17 deletions

No files matched your search

-6
View File
@@ -1,9 +1,3 @@
> **⚠ WARNING**
>
> To play on a custom server on 2021.3.31.3s, you must compile the
> *airship* branch of Impostor located here:
> https://github.com/Impostor/Impostor/tree/airship.
# Unify
An Among Us mod to add extra regions to the regions menu.
+11 -2
View File
@@ -27,7 +27,7 @@ namespace Unify.Patches
public static IRegionInfo DirectRegion { get; set; }
private static TextBox DirectConnect { get; set; }
private static TextBoxTMP DirectConnect { get; set; }
public static void Patch()
{
@@ -77,13 +77,22 @@ namespace Unify.Patches
if (!success)
{
DirectConnect.StartCoroutine(Effects.FIJHCJMBGFP(DirectConnect.transform, 0.75f, 0.25f));
DirectConnect.StartCoroutine(Effects.SwayX(DirectConnect.transform, 0.75f, 0.25f));
return;
}
regionMenu.ChooseOption(newRegion);
regionMenu.Close();
}
[HarmonyPatch(typeof(ServerManager), nameof(ServerManager.LoadServers))]
public static class PatchRegionMenuPatch
{
public static void Postfix()
{
Patch();
}
}
[HarmonyPatch(typeof(RegionMenu), nameof(RegionMenu.Open))]
public static class DirectConnectButtonPatch
+4 -5
View File
@@ -20,7 +20,7 @@ namespace Unify
{
public const string Id = "daemon.unify";
private const string Name = "Unify";
private const string Version = "3.0.1";
private const string Version = "4.0.0";
public static ConfigFile ConfigFile { get; private set; }
@@ -40,11 +40,10 @@ namespace Unify
ConfigFile = new ConfigFile(Path.Combine(Paths.ConfigPath, $"{UnifyPlugin.Id}.cfg"), true);
// =====================================
RegionsPatch.Patch();
// Unpatches the modded handshake, because Impostor is STILL not fully updated yet
Harmony.Unpatch(typeof(UdpConnection).GetMethod("HandleSend"), HarmonyPatchType.Prefix, ReactorPlugin.Id);
Harmony.Unpatch(typeof(UdpConnection).GetMethod("HandleSend"), HarmonyPatchType.Prefix,
ReactorPlugin.Id);
Harmony.PatchAll();
}
+4 -4
View File
@@ -1,20 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>3.0.1</Version>
<Mappings>NuclearPowered/Mappings:0.3.0</Mappings>
<Version>4.0.0</Version>
<Mappings>NuclearPowered/Mappings:0.4.0</Mappings>
<Description>Region mod</Description>
<Authors>Daemon</Authors>
</PropertyGroup>
<PropertyGroup Condition="'$(GamePlatform)' == 'Steam'">
<GameVersion>2021.3.31.3s</GameVersion>
<GameVersion>2021.4.12s</GameVersion>
<DefineConstants>$(DefineConstants);STEAM</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(GamePlatform)' == 'Itch'">
<GameVersion>2021.3.31.3i</GameVersion>
<GameVersion>2021.4.12i</GameVersion>
<DefineConstants>$(DefineConstants);ITCH</DefineConstants>
</PropertyGroup>
Binary file not shown.