Skip to content

Commit

Permalink
Glowsticks: Blue is Blue!
Browse files Browse the repository at this point in the history
  • Loading branch information
AuriRex committed Jul 13, 2023
1 parent f13dfa6 commit 73e4e53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions TheArchive.IL2CPP/Features/Cosmetic/Glowsticks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public class GlowstickSettings
[FSDescription("Turns dark colors bright to actually make them glow")]
public bool ScaleUpColors { get; set; } = true;

[FSDisplayName("Blue is Blue")]
[FSDescription("Adds a third of the blue component as green to the current color if the green component is below that amount.\n\nBasically makes blue look blue instead of purple.")]
public bool BlueIsBlue { get; set; } = true;

public enum LocalOverrideMode
{
Default,
Expand Down Expand Up @@ -167,6 +171,11 @@ public static IEnumerator ColorGlowstick(GlowstickInstance glowstickInstance)
}
}

if (Settings.BlueIsBlue)
{
col = new Color(col.r, Math.Max(col.g, 0.333f * col.b), col.b);
}

// Colorize the actual light source
ChangeLightColor(glowstickInstance, col);

Expand Down

0 comments on commit 73e4e53

Please sign in to comment.