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

◆ GetMagicAuraColor()

Color Terraria.NPC.GetMagicAuraColor ( )
inline

Definition at line 46208 of file NPC.cs.

46209 {
46211 if (type == 160 && townNpcVariationIndex == 1)
46212 {
46213 result = new Color(result.B, result.G, result.R, result.A);
46214 }
46215 if (type == 20 && townNpcVariationIndex == 1)
46216 {
46217 result = new Color(90, 20, 210, result.A);
46218 }
46219 if (type == 663 && townNpcVariationIndex == 1)
46220 {
46221 result = new Color(255, 0, 77, result.A);
46222 }
46223 return result;
46224 }
static Color[] MagicAuraColor
Definition NPCID.cs:4232
int townNpcVariationIndex
Definition NPC.cs:101
int type
Definition NPC.cs:445

References Microsoft.Xna.Framework.Color.A, Microsoft.Xna.Framework.Color.B, Microsoft.Xna.Framework.Graphics.Color, Microsoft.Xna.Framework.Color.G, Terraria.ID.NPCID.Sets.MagicAuraColor, Microsoft.Xna.Framework.Color.R, Terraria.NPC.townNpcVariationIndex, and Terraria.NPC.type.

Referenced by Terraria.NPC.AI_007_TownEntities().