Skip to content

Commit

Permalink
Version 2.6.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem2772 committed May 25, 2021
1 parent b292d2d commit f7170a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Source Code/ClientOptionsPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ void ghostsSeeVotesToggle() {
}

if ((showRoleSummaryButton == null || showRoleSummaryButton.gameObject == null)) {
showRoleSummaryButton = createCustomToggle("Role Summary: ", TheOtherRolesPlugin.ShowRoleSummary.Value, new Vector2(xOffset, yOffset), (UnityEngine.Events.UnityAction)showRoleSummaryToggle, __instance);
showRoleSummaryButton = createCustomToggle("Résumé des rôles : ", TheOtherRolesPlugin.ShowRoleSummary.Value, new Vector2(xOffset, yOffset), (UnityEngine.Events.UnityAction)showRoleSummaryToggle, __instance);

void showRoleSummaryToggle() {
TheOtherRolesPlugin.ShowRoleSummary.Value = !TheOtherRolesPlugin.ShowRoleSummary.Value;
MapOptions.showRoleSummary = TheOtherRolesPlugin.ShowRoleSummary.Value;
updateToggle(showRoleSummaryButton, "Role Summary: ", TheOtherRolesPlugin.ShowRoleSummary.Value);
updateToggle(showRoleSummaryButton, "Résumé des rôles : ", TheOtherRolesPlugin.ShowRoleSummary.Value);
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions Source Code/MeetingPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,6 @@ static void Postfix(MeetingHud __instance, [HarmonyArgument(0)]byte[] states, [H
Lovers.notAckedExiledIsLover = false;
if (exiled != null)
Lovers.notAckedExiledIsLover = ((Lovers.lover1 != null && Lovers.lover1.PlayerId == exiled.PlayerId) || (Lovers.lover2 != null && Lovers.lover2.PlayerId == exiled.PlayerId));

// // Update counter
// int playersLeft = PlayerControl.AllPlayerControls.ToArray().Count(pc =>
// !pc.Data.IsDead && !pc.Data.Disconnected) - (exiled != null ? 1 : 0);
// BlockUtilitiesPatches.udpateBools(playersLeft);
}
}

Expand Down
10 changes: 5 additions & 5 deletions Source Code/TryHard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,10 @@ public static void udpateBools(int playersLeft)
vitalsBool = playersLeft > CustomOptionHolder.maxPlayerVitals.getFloat();
adminBool = playersLeft > CustomOptionHolder.maxPlayerAdmin.getFloat();
camsBool = playersLeft > CustomOptionHolder.maxPlayerCams.getFloat();
// System.Console.WriteLine("Method 3");
// System.Console.WriteLine("PlayerControl Count : " + PlayerControl.AllPlayerControls.Count);
// System.Console.WriteLine("Players Left : " + playersLeft);
// System.Console.WriteLine("Admin : " + adminBool + " / " + CustomOptionHolder.maxPlayerAdmin.getFloat() + "\nVitals : " + vitalsBool + " / " + CustomOptionHolder.maxPlayerVitals.getFloat() + "\nCams : " + camsBool + " / " + CustomOptionHolder.maxPlayerCams.getFloat());
System.Console.WriteLine("Method 3");
System.Console.WriteLine("PlayerControl Count : " + PlayerControl.AllPlayerControls.Count);
System.Console.WriteLine("Players Left : " + playersLeft);
System.Console.WriteLine("Admin : " + adminBool + " / " + CustomOptionHolder.maxPlayerAdmin.getFloat() + "\nVitals : " + vitalsBool + " / " + CustomOptionHolder.maxPlayerVitals.getFloat() + "\nCams : " + camsBool + " / " + CustomOptionHolder.maxPlayerCams.getFloat());

}

Expand All @@ -354,7 +354,7 @@ public static void Postfix(ExileController __instance, GameData.PlayerInfo exile
{
int playersLeft = PlayerControl.AllPlayerControls.ToArray().Count(pc =>
!pc.Data.IsDead && !pc.Data.Disconnected) - (exiled != null ? 1 : 0);
udpateBools(playersLeft);
//udpateBools(playersLeft);
System.Console.WriteLine("Method 2");
System.Console.WriteLine("PlayerControl Count : " + PlayerControl.AllPlayerControls.Count);
System.Console.WriteLine("Players Left : " + playersLeft);
Expand Down

0 comments on commit f7170a1

Please sign in to comment.