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

◆ AI_001_SetRainbowSlimeColor()

void Terraria.NPC.AI_001_SetRainbowSlimeColor ( )
inline

Definition at line 65652 of file NPC.cs.

65653 {
65654 ((Color)(ref color)).R = (byte)Main.DiscoR;
65655 ((Color)(ref color)).G = (byte)Main.DiscoG;
65656 ((Color)(ref color)).B = (byte)Main.DiscoB;
65657 ((Color)(ref color)).A = 100;
65658 alpha = 175;
65659 }
int alpha
0 is opaque, and 255 is transparent. Note that this is the opposite of how alpha is typically express...
Definition NPC.cs:1092
Color color
Definition NPC.cs:1085

References Terraria.NPC.alpha, Terraria.NPC.color, Terraria.Main.DiscoB, Terraria.Main.DiscoG, and Terraria.Main.DiscoR.

Referenced by Terraria.GameContent.Bestiary.UnlockableNPCEntryIcon.AdjustSpecialSpawnRulesForVisuals(), and Terraria.NPC.AI_001_Slimes().

+ Here is the caller graph for this function: