tModLoader v2024.10
A mod to make and play Terraria mods
OneFromOptionsNotScaledWithLuckDropRule Class Reference

Inherits 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 IItemDropRule
List< IItemDropRuleChainAttemptChainedRules [get]
 

Member Function Documentation

◆ CanDrop()

bool OneFromOptionsNotScaledWithLuckDropRule.CanDrop ( DropAttemptInfo  info)

Implements IItemDropRule.

◆ ReportDroprates()

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

Implements IItemDropRule.

◆ TryDroppingItem()

ItemDropAttemptResult OneFromOptionsNotScaledWithLuckDropRule.TryDroppingItem ( DropAttemptInfo  info)

Implements IItemDropRule.

Property Documentation

◆ ChainedRules

List<IItemDropRuleChainAttempt> OneFromOptionsNotScaledWithLuckDropRule.ChainedRules
get

Implements IItemDropRule.