public override ItemDropAttemptResult TryDroppingItem(DropAttemptInfo info) { CommonCode.DropItemForEachInteractingPlayerOnThePlayer(info.npc, _itemId, info.rng, _dropsXoutOfY, _dropsOutOfY, info.rng.Next(_amtDroppedMinimum, _amtDroppedMaximum + 1)); ItemDropAttemptResult result = default(ItemDropAttemptResult); result.State = ItemDropAttemptResultState.Success; return(result); }
public ItemDropAttemptResult TryDroppingItem(DropAttemptInfo info) { if (!CrystalWorld.downedCrystalKing) { CrystalWorld.downedCrystalKing = true; if (Main.netMode == NetmodeID.Server) { NetMessage.SendData(MessageID.WorldData); } } var result = new ItemDropAttemptResult(); result.State = ItemDropAttemptResultState.DoesntFillConditions; return(result); }