TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AI_173_GetColor()

Color Terraria.Projectile.AI_173_GetColor ( )
inline

Definition at line 47907 of file Projectile.cs.

47908 {
47909 //IL_005e: Unknown result type (might be due to invalid IL or missing references)
47910 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
47911 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
47912 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
47913 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
47914 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
47915 if (NPC.ShouldEmpressBeEnraged())
47916 {
47917 float lerpValue = Utils.GetLerpValue(0f, 60f, (int)Main.time, clamped: true);
47918 return Color.Lerp(Color.White, Main.OurFavoriteColor, lerpValue) * Opacity;
47919 }
47920 return Main.hslToRgb((ai[1] + 0f) % 1f, 1f, 0.5f) * Opacity;
47921 }
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....

References Terraria.Utils.GetLerpValue(), Terraria.Main.hslToRgb(), Terraria.Main.OurFavoriteColor, Terraria.NPC.ShouldEmpressBeEnraged(), and Terraria.Main.time.

+ Here is the call graph for this function: