tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.GameContent.ItemDropRules.CommonCode Class Reference

Static Public Member Functions

static void DropItemForEachInteractingPlayerOnThePlayer (NPC npc, int itemId, UnifiedRandom rng, int chanceNumerator, int chanceDenominator, int stack=1, bool interactionRequired=true)
 
static void DropItemFromNPC (NPC npc, int itemId, int stack, bool scattered=false)
 
static void DropItemLocalPerClientAndSetNPCMoneyTo0 (NPC npc, int itemId, int stack, bool interactionRequired=true)
 
static void ModifyItemDropFromNPC (NPC npc, int itemIndex)