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

Inherits Terraria.GameContent.ItemDropRules.IItemDropRule, and Terraria.GameContent.ItemDropRules.INestedItemDropRule.

Public Member Functions

 OneFromRulesRule (int chanceDenominator, int chanceNumerator, params IItemDropRule[] options)
 
 OneFromRulesRule (int chanceDenominator, params IItemDropRule[] options)
 
bool CanDrop (DropAttemptInfo info)
 
void ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
 
ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info)
 
ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info, ItemDropRuleResolveAction resolveAction)
 
bool CanDrop (DropAttemptInfo info)
 
void ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
 
ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info)
 
ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info, ItemDropRuleResolveAction resolveAction)
 

Public Attributes

int chanceDenominator
 
int chanceNumerator
 
IItemDropRule[] options
 

Properties

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

Member Function Documentation

◆ CanDrop()

bool Terraria.GameContent.ItemDropRules.OneFromRulesRule.CanDrop ( DropAttemptInfo  info)

◆ ReportDroprates()

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

◆ TryDroppingItem() [1/2]

ItemDropAttemptResult Terraria.GameContent.ItemDropRules.OneFromRulesRule.TryDroppingItem ( DropAttemptInfo  info)

◆ TryDroppingItem() [2/2]

ItemDropAttemptResult Terraria.GameContent.ItemDropRules.OneFromRulesRule.TryDroppingItem ( DropAttemptInfo  info,
ItemDropRuleResolveAction  resolveAction 
)

Property Documentation

◆ ChainedRules

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