tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.ItemDropRules.CommonDropWithRerolls Class Reference

Inherits Terraria.GameContent.ItemDropRules.CommonDrop.

Public Member Functions

 CommonDropWithRerolls (int itemId, int chanceDenominator, int amountDroppedMinimum, int amountDroppedMaximum, int rerolls)
 
override void ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
 
override ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info)
 
- Public Member Functions inherited from Terraria.GameContent.ItemDropRules.CommonDrop
 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 timesToRoll
 
- Public Attributes inherited from Terraria.GameContent.ItemDropRules.CommonDrop
int amountDroppedMaximum
 
int amountDroppedMinimum
 
int chanceDenominator
 
int chanceNumerator
 
int itemId
 

Additional Inherited Members

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

Member Function Documentation

◆ ReportDroprates()

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

◆ TryDroppingItem()

override ItemDropAttemptResult Terraria.GameContent.ItemDropRules.CommonDropWithRerolls.TryDroppingItem ( DropAttemptInfo  info)
virtual