diff --git a/MiraAPI/Utilities/Extensions.cs b/MiraAPI/Utilities/Extensions.cs
index 7a0d9a7..74e5ea2 100644
--- a/MiraAPI/Utilities/Extensions.cs
+++ b/MiraAPI/Utilities/Extensions.cs
@@ -102,6 +102,12 @@ public static class Extensions
return component;
}
+ ///
+ /// Gets the maximum value from a dictionary of integers, returning the key and value.
+ ///
+ /// The dictionary to search.
+ /// Whether there is a tie for the maximum value.
+ /// The key-value pair with the maximum value.
public static KeyValuePair MaxPair(this Dictionary self, out bool tie)
{
tie = true;
@@ -121,6 +127,12 @@ public static class Extensions
return result;
}
+ ///
+ /// Gets the maximum value from a dictionary of floats, returning the key and value.
+ ///
+ /// The dictionary to search.
+ /// Whether there is a tie for the maximum value.
+ /// The key-value pair with the maximum value.
public static KeyValuePair MaxPair(this Dictionary self, out bool tie)
{
tie = true;
@@ -342,18 +354,6 @@ public static class Extensions
return new Color(color.r - amount, color.g - amount, color.b - amount);
}
- ///
- /// Gets an alternate color based on the original color.
- ///
- /// The original color.
- /// The amount to darken or lighten the original color by between 0.0 and 1.0.
- /// An alternate color that has been darkened or lightened.
- [Obsolete("Use FindAlternateColor for WACG compliance.")]
- public static Color GetAlternateColor(this Color color, float amount = 0.45f)
- {
- return color.IsColorDark() ? LightenColor(color, amount) : DarkenColor(color, amount);
- }
-
///
/// Lightens a color by a specified amount.
///
@@ -365,16 +365,6 @@ public static class Extensions
return new Color(color.r + amount, color.g + amount, color.b + amount);
}
- ///
- /// Checks if a color is dark.
- ///
- /// The color to check.
- /// True if the color is dark, false otherwise.
- public static bool IsColorDark(this Color color)
- {
- return color.r < 0.5f && color is { g: < 0.5f, b: < 0.5f };
- }
-
///
/// Gets the nearest dead body to a player.
///