dinidini4000
Skeletron Prime
Anyone knows why my mod items can't drop from monsters in expert? Everything works in normal but they just won't drop in expert. Here's one of my code in GlobalNPC.cs:
Code:if (npc.type == NPCID.GreekSkeleton && !Main.expertMode) { if(Main.rand.Next(0, 15) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CaesarSword")); } }
!Main.expertMode
!=NOT
so this turns it into this
not Main.expertMode
[doublepost=1461783268,1461783179][/doublepost]i dont know how to read terraria's source code how can i do this