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

Inherits Terraria.GameContent.ItemDropRules.IItemDropRule.

Inherited by Terraria.GameContent.ItemDropRules.CommonDropNotScalingWithLuck, Terraria.GameContent.ItemDropRules.CommonDropWithRerolls, Terraria.GameContent.ItemDropRules.DropLocalPerClientAndResetsNPCMoneyTo0, Terraria.GameContent.ItemDropRules.DropPerPlayerOnThePlayer, and Terraria.GameContent.ItemDropRules.ItemDropWithConditionRule.

Public Member Functions

 CommonDrop (int itemId, int chanceDenominator, int amountDroppedMinimum=1, int amountDroppedMaximum=1, int chanceNumerator=1)
 
virtual bool CanDrop (DropAttemptInfo info)
 
virtual void ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
 
virtual ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info)
 

Public Attributes

int amountDroppedMaximum
 
int amountDroppedMinimum
 
int chanceDenominator
 
int chanceNumerator
 
int itemId
 

Properties

List< IItemDropRuleChainAttemptChainedRules [get]
 
- Properties inherited from Terraria.GameContent.ItemDropRules.IItemDropRule
List< IItemDropRuleChainAttemptChainedRules [get]