tModLoader v2024.11
A mod to make and play Terraria mods
FewFromOptionsNotScaledWithLuckDropRule Class Reference

Runs multiple rules if successes. Does not use player luck. More...

Inherits IItemDropRule.

Public Member Functions

 FewFromOptionsNotScaledWithLuckDropRule (int amount, 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 amount
 
int chanceDenominator
 
int chanceNumerator
 
int[] dropIds
 

Properties

List< IItemDropRuleChainAttemptChainedRules [get]
 
- Properties inherited from IItemDropRule
List< IItemDropRuleChainAttemptChainedRules [get]
 

Detailed Description

Runs multiple rules if successes. Does not use player luck.

Member Function Documentation

◆ CanDrop()

bool FewFromOptionsNotScaledWithLuckDropRule.CanDrop ( DropAttemptInfo  info)

Implements IItemDropRule.

◆ ReportDroprates()

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

Implements IItemDropRule.

◆ TryDroppingItem()

ItemDropAttemptResult FewFromOptionsNotScaledWithLuckDropRule.TryDroppingItem ( DropAttemptInfo  info)

Implements IItemDropRule.

Property Documentation

◆ ChainedRules

List<IItemDropRuleChainAttempt> FewFromOptionsNotScaledWithLuckDropRule.ChainedRules
get

Implements IItemDropRule.