public float GetPrismHue(float indexing)
{
if (Main.player[owner].active)
{
switch (Main.player[owner].name)
{
case "Tsuki":
case "Yoraiz0r":
return 0.85f;
case "Ghostar":
return 0.33f;
case "Devalaous":
return (float)(0.660000026226044 + Math.Cos(Main.time / 180.0 * 6.28318548202515) * 0.100000001490116);
case "Leinfors":
return 0.77f;
case "Aeroblop":
return (float)(0.25 + Math.Cos(Main.time / 180.0 * 6.28318548202515) * 0.100000001490116);
case "Doylee":
return 0.0f;
case "Darkhalis":
case "Arkhalis":
return (float)(0.75 + Math.Cos(Main.time / 180.0 * 6.28318548202515) * 0.0700000002980232);
case "Nike Leon":
return (float)(0.0750000029802322 + Math.Cos(Main.time / 180.0 * 6.28318548202515) * 0.0700000002980232);
case "Suweeka":
return (float)(0.5 + Math.Cos(Main.time / 180.0 * 6.28318548202515) * 0.180000007152557);
case "W1K":
return (float)(0.75 + Math.Cos(Main.time / 120.0 * 6.28318548202515) * 0.0500000007450581);
case "Random":
return Utils.NextFloat(Main.rand);
}
}
return (int)indexing / 6f;
}