public void GetDyeTraderReward()
{
List<int> list = new List<int>()
{
3560,
3028,
3041,
3040,
3025,
3190,
3027,
3026,
3554,
3553,
3555,
2872,
3534,
2871
};
if (Main.hardMode)
{
list.Add(3039);
list.Add(3038);
list.Add(3598);
list.Add(3597);
list.Add(3600);
list.Add(3042);
list.Add(3533);
list.Add(3561);
if (NPC.downedMechBossAny)
{
list.Add(2883);
list.Add(2869);
list.Add(2873);
list.Add(2870);
}
if (NPC.downedPlantBoss)
{
list.Add(2878);
list.Add(2879);
list.Add(2884);
list.Add(2885);
}
if (NPC.downedMartians)
{
list.Add(2864);
list.Add(3556);
}
if (NPC.downedMoonlord)
list.Add(3024);
}
int Type = list[Main.rand.Next(list.Count)];
Item newItem = new Item();
newItem.SetDefaults(Type, false);
newItem.stack = 3;
newItem.position = this.Center;
Item obj = this.GetItem(this.whoAmI, newItem, true, false);
if (obj.stack <= 0)
return;
int number = Item.NewItem((int)this.position.X, (int)this.position.Y, this.width, this.height, obj.itemId, obj.stack, false, 0, true);
if (Main.netMode != 1)
return;
NetMessage.SendData(21, -1, -1, "", number, 1f, 0.0f, 0.0f, 0, 0, 0);
}