public override void NPCLoot() { if (npc.boss) { int expert = 0; if (Main.expertMode) { expert = 1; npc.DropBossBags(); } else { for (int i = 0; i <= 30; i++) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LunarRoyalGel")); } } } //float targetX = npc.Center.X; //float targetY = npc.Center.Y; //NPC.NewNPC((int)npc.Center.X + 13, (int)npc.Center.Y - 2, mod.NPCType("GraySlime6")); //NPC.NewNPC((int)npc.Center.X - 13, (int)npc.Center.Y - 2, mod.NPCType("GraySlime6")); Achivements.SGAAchivements.UnlockAchivement("SPinky", Main.LocalPlayer); if (!SGAWorld.downedSPinky) { SGAWorld.AdvanceHellionStory(); } SGAWorld.downedSPinky = true; }
public override void NPCLoot() { if (Main.expertMode) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TerrariacoCrateKeyUber")); } Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MoneySign"), Main.rand.Next(15, Main.expertMode ? 35 : 25)); Achivements.SGAAchivements.UnlockAchivement("Cratrogeddon", Main.LocalPlayer); if (SGAWorld.downedCratrosityPML == false) { SGAWorld.AdvanceHellionStory(); } SGAWorld.downedCratrosityPML = true; }
public override void NPCLoot() { for (int i = 0; i < (Main.hardMode ? 2 : 1); i += 1) { if (Main.expertMode) { npc.DropBossBags(); } else { for (int f = 0; f < (Main.rand.Next(30, 45)); f = f + 1) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkyGel")); } int choice = Main.rand.Next(4); if (choice == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkFlail")); } else if (choice == 1) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Mossthorn")); } else if (choice == 2) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Landslide")); } else if (choice == 3) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Mudmore")); } } } Achivements.SGAAchivements.UnlockAchivement("Murk", Main.LocalPlayer); if (SGAWorld.downedMurk == 0) { Idglib.Chat("The Moist Stone around Dank Shrines has weakened and can be broken.", 75, 225, 75); } SGAWorld.downedMurk = Main.hardMode ? 2 : 1; SGAWorld.GenVirulent(); }
//player.CountItem(mod.ItemType("ModItem")) public override bool UseItem(Player ply) { SGAWorld.QuestCheck(0, ply); return(true); }