![]() |
tModLoader v2024.07
A mod to make and play Terraria mods
|
Inherits 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< IItemDropRuleChainAttempt > | ChainedRules = new() [get] |
![]() | |
List< IItemDropRuleChainAttempt > | ChainedRules [get] |
bool CoinsRule.CanDrop | ( | DropAttemptInfo | info | ) |
Implements IItemDropRule.
void CoinsRule.ReportDroprates | ( | List< DropRateInfo > | drops, |
DropRateInfoChainFeed | ratesInfo | ||
) |
Implements IItemDropRule.
ItemDropAttemptResult CoinsRule.TryDroppingItem | ( | DropAttemptInfo | info | ) |
Implements IItemDropRule.
|
get |
Implements IItemDropRule.