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

Inherits Terraria.GameContent.ItemDropRules.IItemDropRule.

Public Member Functions

 CoinsRule (long value, bool withRandomBonus=false)
 
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)
 

Static Public Member Functions

static IEnumerable<(int itemId, int count)> ToCoins (long money)
 

Public Attributes

long value
 
bool withRandomBonus = false
 

Properties

List< IItemDropRuleChainAttemptChainedRules = new() [get]
 
- Properties inherited from Terraria.GameContent.ItemDropRules.IItemDropRule
List< IItemDropRuleChainAttemptChainedRules [get]
 

Member Function Documentation

◆ CanDrop()

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

◆ ReportDroprates()

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

◆ TryDroppingItem()

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

Property Documentation

◆ ChainedRules

List<IItemDropRuleChainAttempt> Terraria.GameContent.ItemDropRules.CoinsRule.ChainedRules = new()
get