Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ RollDragonflyType()

static int Terraria.NPC.RollDragonflyType ( int tileType = 2)
inlinestaticprivate

Definition at line 72545 of file NPC.cs.

72546 {
72547 if (tileType == 53)
72548 {
72549 return Main.rand.NextFromList(new short[3] { 595, 598, 600 });
72550 }
72551 return Main.rand.NextFromList(new short[3] { 596, 597, 599 });
72552 }

References Terraria.Main.rand.