tModLoader v2024.05
A mod to make and play Terraria mods
ItemDropRule Class Reference

Static Public Member Functions

static IItemDropRule AlwaysAtleastOneSuccess (params IItemDropRule[] rules)
 
static IItemDropRule BossBag (int itemId)
 
static IItemDropRule BossBagByCondition (IItemDropRuleCondition condition, int itemId)
 
static IItemDropRule ByCondition (IItemDropRuleCondition condition, int itemId, int chanceDenominator=1, int minimumDropped=1, int maximumDropped=1, int chanceNumerator=1)
 
static IItemDropRule Coins (long value, bool withRandomBonus)
 
static IItemDropRule CoinsBasedOnNPCValue (int npcId)
 
static IItemDropRule Common (int itemId, int chanceDenominator=1, int minimumDropped=1, int maximumDropped=1)
 
static IItemDropRule DropNothing ()
 
static IItemDropRule ExpertGetsRerolls (int itemId, int chanceDenominator, int expertRerolls)
 
static IItemDropRule FewFromOptions (int amount, int chanceDenominator, params int[] options)
 
static IItemDropRule FewFromOptionsNotScalingWithLuck (int amount, int chanceDenominator, params int[] options)
 
static IItemDropRule FewFromOptionsNotScalingWithLuckWithX (int amount, int chanceDenominator, int chanceNumerator, params int[] options)
 
static IItemDropRule FewFromOptionsWithNumerator (int amount, int chanceDenominator, int chanceNumerator, params int[] options)
 
static IItemDropRule Food (int itemId, int chanceDenominator, int minimumDropped=1, int maximumDropped=1)
 
static IItemDropRule MasterModeCommonDrop (int itemId)
 
static IItemDropRule MasterModeDropOnAllPlayers (int itemId, int chanceDenominator=1)
 
static IItemDropRule NormalvsExpert (int itemId, int chanceDenominatorInNormal, int chanceDenominatorInExpert)
 
static IItemDropRule NormalvsExpertNotScalingWithLuck (int itemId, int chanceDenominatorInNormal, int chanceDenominatorInExpert)
 
static IItemDropRule NormalvsExpertOneFromOptions (int chanceDenominatorInNormal, int chanceDenominatorInExpert, params int[] options)
 
static IItemDropRule NormalvsExpertOneFromOptionsNotScalingWithLuck (int chanceDenominatorInNormal, int chanceDenominatorInExpert, params int[] options)
 
static IItemDropRule NotScalingWithLuck (int itemId, int chanceDenominator=1, int minimumDropped=1, int maximumDropped=1)
 
static IItemDropRule NotScalingWithLuckWithNumerator (int itemId, int chanceDenominator=1, int chanceNumerator=1, int minimumDropped=1, int maximumDropped=1)
 
static IItemDropRule OneFromOptions (int chanceDenominator, params int[] options)
 
static IItemDropRule OneFromOptionsNotScalingWithLuck (int chanceDenominator, params int[] options)
 
static IItemDropRule OneFromOptionsNotScalingWithLuckWithX (int chanceDenominator, int chanceNumerator, params int[] options)
 
static IItemDropRule OneFromOptionsWithNumerator (int chanceDenominator, int chanceNumerator, params int[] options)
 
static IItemDropRule SequentialRules (int chanceDenominator, params IItemDropRule[] rules)
 
static IItemDropRule SequentialRulesNotScalingWithLuck (int chanceDenominator, params IItemDropRule[] rules)
 
static IItemDropRule SequentialRulesNotScalingWithLuckWithNumerator (int chanceDenominator, int chanceNumerator, params IItemDropRule[] rules)
 
static IItemDropRule StatusImmunityItem (int itemId, int dropsOutOfX)
 
static IItemDropRule WithRerolls (int itemId, int rerolls, int chanceDenominator=1, int minimumDropped=1, int maximumDropped=1)