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

Used just by Herb Bag. Horribly hardcoded. Do not use if you can. More...

Inherits IItemDropRule.

Public Member Functions

 HerbBagDropsItemDropRule (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[] dropIds
 

Properties

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

Detailed Description

Used just by Herb Bag. Horribly hardcoded. Do not use if you can.

Member Function Documentation

◆ CanDrop()

bool HerbBagDropsItemDropRule.CanDrop ( DropAttemptInfo  info)

Implements IItemDropRule.

◆ ReportDroprates()

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

Implements IItemDropRule.

◆ TryDroppingItem()

ItemDropAttemptResult HerbBagDropsItemDropRule.TryDroppingItem ( DropAttemptInfo  info)

Implements IItemDropRule.

Property Documentation

◆ ChainedRules

List<IItemDropRuleChainAttempt> HerbBagDropsItemDropRule.ChainedRules
get

Implements IItemDropRule.