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

Inherits Terraria.GameContent.ItemDropRules.IItemDropRule.

Public Member Functions

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

Public Attributes

int chanceDenominator
 
int chanceNumerator
 
int[] dropIds
 

Properties

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

Member Function Documentation

◆ CanDrop()

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

◆ ReportDroprates()

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

◆ TryDroppingItem()

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

Property Documentation

◆ ChainedRules

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