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

◆ AI_171_GetColor()

Color Terraria.Projectile.AI_171_GetColor ( )
inline

Definition at line 48057 of file Projectile.cs.

48058 {
48059 //IL_005e: Unknown result type (might be due to invalid IL or missing references)
48060 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
48061 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
48062 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
48063 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
48064 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
48065 if (NPC.ShouldEmpressBeEnraged())
48066 {
48067 float lerpValue = Utils.GetLerpValue(0f, 60f, (int)Main.time, clamped: true);
48068 return Color.Lerp(Color.White, Main.OurFavoriteColor, lerpValue) * Opacity;
48069 }
48070 return Main.hslToRgb((ai[1] + 0.5f) % 1f, 1f, 0.5f) * Opacity;
48071 }
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: