mirror of
https://github.com/ApeMV/AmongUsRevamped.git
synced 2026-10-19 15:51:59 +00:00
v2.0.1
This commit is contained in:
1 parent
2e66fb54f9
commit
9572c8ca53
8 files changed
+29
-14
No files matched your search
+1
-1
@@ -44,7 +44,7 @@ public partial class Main : BasePlugin
|
||||
|
||||
public static bool HasArgumentException;
|
||||
public static string CredentialsText;
|
||||
public const string ModVersion = "v2.0.0";
|
||||
public const string ModVersion = "v2.0.1";
|
||||
|
||||
public static float GameTimer;
|
||||
public static float AfkTimer;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.735" ExcludeAssets="runtime;native" />
|
||||
|
||||
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2026.8.18" PrivateAssets="all" Condition="'$(Configuration)' == 'Release'"/>
|
||||
<PackageReference Include="AmongUs.GameLibs.Android" Version="2025.10.14" PrivateAssets="all" Condition="'$(Configuration)' == 'Android'"/>
|
||||
<PackageReference Include="AmongUs.GameLibs.Android" Version="2026.8.18" PrivateAssets="all" Condition="'$(Configuration)' == 'Android'"/>
|
||||
|
||||
<PackageReference Include="BepInEx.AutoPlugin" Version="1.1.0" PrivateAssets="all" />
|
||||
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.1.0-rc.1" PrivateAssets="all" ExcludeAssets="runtime" />
|
||||
|
||||
@@ -569,7 +569,7 @@ namespace AmongUsRevamped
|
||||
DisableMushroomMixup = BooleanOptionItem.Create(60462, Translator.Get("disableMushroomMixup"), false, TabGroup.ModSettings, false)
|
||||
.SetParent(DisableSabotage)
|
||||
.SetColor(new Color32(255, 153, 153, byte.MaxValue));
|
||||
DisableCloseDoor = BooleanOptionItem.Create(60566, Translator.Get("disableCloseDoor"), false, TabGroup.ModSettings, false)
|
||||
DisableCloseDoor = BooleanOptionItem.Create(60463, Translator.Get("disableCloseDoor"), false, TabGroup.ModSettings, false)
|
||||
.SetColor(Color.red);
|
||||
|
||||
TabGroupGameplayGeneral = TextOptionItem.Create(60564, Translator.Get("tabGroupGameplayGeneral"), TabGroup.ModSettings)
|
||||
|
||||
@@ -65,7 +65,7 @@ internal static class CoShowIntroPatch
|
||||
{
|
||||
if (Main.NormalOptions.roleOptions.TryGetRoleOptions<GuardianAngelRoleOptionsV11>(RoleTypes.GuardianAngel, out var GuardianAngelOptions))
|
||||
{
|
||||
GuardianAngelOptions.ProtectionDurationSeconds = 60f;
|
||||
GuardianAngelOptions.ProtectionDurationSeconds = 10f;
|
||||
}
|
||||
OptionManager.SyncGameOptions();
|
||||
|
||||
|
||||
@@ -232,12 +232,14 @@ public static class ShowNotificationPatch
|
||||
|
||||
case DisconnectReasons.Sanctions:
|
||||
case DisconnectReasons.Hacking:
|
||||
case DisconnectReasons.Banned:
|
||||
Logger.Info($" {playerName} was banned from the game. ({reason})", "ShowNotificationPatch");
|
||||
Logger.SendInGame($" {playerName} was banned from the game. ({reason})");
|
||||
return false;
|
||||
|
||||
case DisconnectReasons.DuplicateConnectionDetected:
|
||||
case DisconnectReasons.ClientTimeout:
|
||||
case DisconnectReasons.Kicked:
|
||||
Logger.Info($" {playerName} was kicked from the game. ({reason})", "ShowNotificationPatch");
|
||||
Logger.SendInGame($" {playerName} was kicked from the game. ({reason})");
|
||||
return false;
|
||||
|
||||
@@ -176,6 +176,7 @@ internal static class OnGameStartPatch
|
||||
public static void Postfix(IntroCutscene __instance, ref Il2CppSystem.Collections.IEnumerator __result)
|
||||
{
|
||||
if (!AmongUsClient.Instance.AmHost) return;
|
||||
|
||||
if ((Options.SNSChatInGameFast.GetBool() && Options.Gamemode.GetValue() == 1) || (Options.PNSChatInGameFast.GetBool() && Options.Gamemode.GetValue() == 3))
|
||||
{
|
||||
__result = SkipIntro(__instance, __result).WrapToIl2Cpp();
|
||||
@@ -203,6 +204,7 @@ internal static class OnGameStartPatch
|
||||
public static bool Prefix(ref NamePlateViewData __result)
|
||||
{
|
||||
if (!AmongUsClient.Instance.AmHost) return true;
|
||||
|
||||
if ((Options.SNSChatInGameFast.GetBool() && Options.Gamemode.GetValue() == 1) || (Options.PNSChatInGameFast.GetBool() && Options.Gamemode.GetValue() == 3))
|
||||
{
|
||||
if (MeetingHud.Instance == null) return true;
|
||||
@@ -227,8 +229,11 @@ internal static class OnGameStartPatch
|
||||
{
|
||||
if (!AmongUsClient.Instance.AmHost) return;
|
||||
|
||||
if (meetingNameplate != null) Object.Destroy(meetingNameplate);
|
||||
meetingNameplate = null;
|
||||
if ((Options.SNSChatInGameFast.GetBool() && Options.Gamemode.GetValue() == 1) || (Options.PNSChatInGameFast.GetBool() && Options.Gamemode.GetValue() == 3))
|
||||
{
|
||||
if (meetingNameplate != null) Object.Destroy(meetingNameplate);
|
||||
meetingNameplate = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -341,6 +341,14 @@
|
||||
"pnsDisableCloseDoor": "Выключить Саботажи Дверей В Режиме Фантомные Прятки",
|
||||
"tabGroupPNS": "Фантомные Прятки",
|
||||
"badMoveTimeToSuicide": "Файнтомы Самоубиваются После Видимого Движения После",
|
||||
"snsImpostorCanVent": "Предатели могут уходить в люк",
|
||||
"pnsDesc": "Отправляет информацию о Режиме Фантомных Прятках."
|
||||
"snsImpostorCanVent": "Предатели Могут Уходить в Люк",
|
||||
"pnsDesc": "Отправляет Информацию о Режиме Фантомных Прятках.",
|
||||
"modeVoteDuration": "Врямя Голосования За Режим",
|
||||
"snsChatInGameExtendTwo": "Отправить увеличенную инфо после начала игры",
|
||||
"snsChatInGameFast": "Быстрые Собрания (экспериментальное+)",
|
||||
"shieldFirstDeath": "Защищать Игрока Который Умер Первым",
|
||||
"shieldFirstDeathDuration": "Длительность Щита",
|
||||
"snsTwoDesc": "Отправить Увеличенное Описание Клона.",
|
||||
"modeVoteDesc": "Начать Голосование между всеми режимами.",
|
||||
"automaticModePoll": "Автоматический /gmvote После Перезахода"
|
||||
}
|
||||
@@ -323,10 +323,10 @@
|
||||
"automaticMapPoll": "重新加入后自发起起 /mapvote",
|
||||
"automaticAllMapPoll": "重新加入后自动发起 /allmapvote",
|
||||
"timeBeforeMapPoll": "投票开始前等待時間",
|
||||
|
||||
"pnsDisableSabotage": "Disable PnS Critical Sabotages",
|
||||
"pnsDisableCloseDoor": "Disable PnS Door Sabotages",
|
||||
"tabGroupPNS": "Poof and Seek",
|
||||
"badMoveTimeToSuicide": "Phantom Suicides After Visibly Moving For",
|
||||
"snsImpostorCanVent": "Impostors can vent"
|
||||
"pnsDesc": "发送 Poof and Seek 幻象与躲藏 游戏模式说明。",
|
||||
"pnsDisableSabotage": "禁用 PnS 紧急破坏。",
|
||||
"pnsDisableCloseDoor": "禁用 PnS 关门破坏。",
|
||||
"tabGroupPNS": "Poof and Seek",
|
||||
"badMoveTimeToSuicide": "幻象师在明显移动后自杀的时间。",
|
||||
"snsImpostorCanVent": "内鬼可以使用通风管。"
|
||||
}
|
||||
Reference in new issue
Block a user