This commit is contained in:
Gurge44 committed 2024-11-08 08:52:17 +01:00
1 parent 7311ec6422
commit 72f7b52d38
1 file changed
+3 -4
+3 -4
View File
@@ -15,8 +15,7 @@ namespace EHR
{
public static Dictionary<TaskTypes, OptionItem> DisableTasksSettings = [];
public static void Prefix( /*ShipStatus __instance,*/
[HarmonyArgument(4)] Il2CppSystem.Collections.Generic.List<NormalPlayerTask> unusedTasks)
public static void Prefix([HarmonyArgument(4)] Il2CppSystem.Collections.Generic.List<NormalPlayerTask> unusedTasks)
{
if (!AmongUsClient.Instance.AmHost) return;
@@ -100,7 +99,7 @@ namespace EHR
};
}
if (!Options.DisableShortTasks.GetBool() && !Options.DisableCommonTasks.GetBool() && !Options.DisableLongTasks.GetBool() && !Options.DisableOtherTasks.GetBool()) return;
if (!Options.DisableShortTasks.GetBool() && !Options.DisableCommonTasks.GetBool() && !Options.DisableLongTasks.GetBool() && !Options.DisableOtherTasks.GetBool() && Options.CurrentGameMode == CustomGameMode.Standard) return;
List<NormalPlayerTask> disabledTasks = [];
@@ -110,7 +109,7 @@ namespace EHR
foreach (NormalPlayerTask task in disabledTasks)
{
Logger.Msg("Deleted assigned task: " + task.TaskType, "AddTask");
Logger.Msg($"Deleted assigned task: {task.TaskType}", "AddTask");
unusedTasks.Remove(task);
}