tModLoader v2024.10
A mod to make and play Terraria mods
|
Runs the provided rules in order, stopping after a rule succeeds.
More...
Inherits IItemDropRule, and INestedItemDropRule.
Public Member Functions | |
SequentialRulesRule (int chanceDenominator, params IItemDropRule[] rules) | |
bool | CanDrop (DropAttemptInfo info) |
void | ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo) |
ItemDropAttemptResult | TryDroppingItem (DropAttemptInfo info) |
ItemDropAttemptResult | TryDroppingItem (DropAttemptInfo info, ItemDropRuleResolveAction resolveAction) |
bool | CanDrop (DropAttemptInfo info) |
void | ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo) |
ItemDropAttemptResult | TryDroppingItem (DropAttemptInfo info) |
ItemDropAttemptResult | TryDroppingItem (DropAttemptInfo info, ItemDropRuleResolveAction resolveAction) |
Public Attributes | |
int | chanceDenominator |
IItemDropRule[] | rules |
Properties | |
List< IItemDropRuleChainAttempt > | ChainedRules [get] |
Properties inherited from IItemDropRule | |
List< IItemDropRuleChainAttempt > | ChainedRules [get] |
Runs the provided rules in order, stopping after a rule succeeds.
bool SequentialRulesRule.CanDrop | ( | DropAttemptInfo | info | ) |
Implements IItemDropRule.
void SequentialRulesRule.ReportDroprates | ( | List< DropRateInfo > | drops, |
DropRateInfoChainFeed | ratesInfo | ||
) |
Implements IItemDropRule.
ItemDropAttemptResult SequentialRulesRule.TryDroppingItem | ( | DropAttemptInfo | info | ) |
Implements IItemDropRule.
ItemDropAttemptResult SequentialRulesRule.TryDroppingItem | ( | DropAttemptInfo | info, |
ItemDropRuleResolveAction | resolveAction | ||
) |
Implements INestedItemDropRule.
|
get |
Implements IItemDropRule.