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

◆ AI_121_QueenSlime_GetDustColor()

static Color Terraria.NPC.AI_121_QueenSlime_GetDustColor ( )
inlinestatic

Definition at line 38257 of file NPC.cs.

38258 {
38259 Color value = new Color(0, 160, 255);
38260 Color value3 = Color.Lerp(value2: new Color(255, 80, 255), value1: new Color(200, 200, 200), amount: Main.rand.NextFloat());
38261 return Color.Lerp(value, value3, Main.rand.NextFloat());
38262 }
float value
Definition NPC.cs:523
static Color Lerp(Color value1, Color value2, float amount)
Definition Color.cs:491

References Microsoft.Xna.Framework.Graphics.Color, Microsoft.Xna.Framework.Color.Lerp(), Terraria.Main.rand, and Terraria.NPC.value.

Referenced by Terraria.Projectile.AI_001(), Terraria.NPC.AI_121_QueenSlime(), Terraria.Projectile.AI_135_OgreStomp(), and Terraria.Projectile.Kill().