tModLoader v2022.09
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)
 
bool CanDrop (DropAttemptInfo info)
 
void ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
 
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]
 

Member Function Documentation

◆ CanDrop()

virtual bool Terraria.GameContent.ItemDropRules.CommonDrop.CanDrop ( DropAttemptInfo  info)
virtual

◆ ReportDroprates()

virtual void Terraria.GameContent.ItemDropRules.CommonDrop.ReportDroprates ( List< DropRateInfo drops,
DropRateInfoChainFeed  ratesInfo 
)
virtual

◆ TryDroppingItem()

virtual ItemDropAttemptResult Terraria.GameContent.ItemDropRules.CommonDrop.TryDroppingItem ( DropAttemptInfo  info)
virtual

Property Documentation

◆ ChainedRules

List<IItemDropRuleChainAttempt> Terraria.GameContent.ItemDropRules.CommonDrop.ChainedRules
get