Skip to content

Commit

Permalink
yet another oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
AlchlcDvl committed Nov 1, 2023
1 parent 7166f2a commit 831b367
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions TownOfUsReworked/Extensions/FixExtentions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,19 @@ public static void Fix()

break;

case 5:
var comms7 = ShipStatus.Instance.Systems[SystemTypes.Comms].Cast<HudOverrideSystemType>();

if (comms7.IsActive)
FixComms();

var reactor3 = ShipStatus.Instance.Systems[SystemTypes.Reactor].Cast<ReactorSystemType>();

if (reactor3.IsActive)
FixReactor(SystemTypes.Reactor);

break;

case 6:
if (!SubLoaded)
break;
Expand Down
3 changes: 1 addition & 2 deletions TownOfUsReworked/Modules/ChatCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,11 @@ private static void KickBan(string[] args, ChatController __instance)
private static void Help(ChatController __instance)
{
var setColor = TownOfUsReworked.IsTest ? "/setcolour or /setcolor, /setname" : "";
var whisper = CustomGameOptions.Whispers ? "/whisper" : "";
var comma = setColor.Length == 0 ? "" : ", ";
var kickBan = comma + (AmongUsClient.Instance.AmHost && AmongUsClient.Instance.CanBan() ? "/kick, /ban, /clearlobby" : "");
var test = TownOfUsReworked.IsTest ? ", /testargs, /testargless, /rpc" : "";
var lobby = setColor + kickBan != "" ? $"\n\nCommands available in lobby:\n{setColor}{kickBan}" : "";
Run(__instance, "<color=#0000FFFF>✿ Help Menu ✿</color>", $"Commands available all the time:\n/help, /controls, /summary{test}\n\nCommands available in game:\n{whisper}{lobby}");
Run(__instance, "<color=#0000FFFF>✿ Help Menu ✿</color>", $"Commands available all the time:\n/help, /controls, /summary, /whisper{test}\n\nCommands available in game:\n{lobby}");
}

private static void Controls(ChatController __instance) => Run(__instance, "<color=#6697FFFF>◆ Controls ◆</color>", "Here are the controls:\nF1 - Start up the MCI control panel (local "
Expand Down

0 comments on commit 831b367

Please sign in to comment.