tModLoader v2024.09
A mod to make and play Terraria mods
|
Runs multiple drop rules if successes. More...
Inherits IItemDropRule, and INestedItemDropRule.
Public Member Functions | |
FewFromRulesRule (int amount, int chanceDenominator, params IItemDropRule[] options) | |
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 | amount |
int | chanceDenominator |
IItemDropRule[] | options |
Properties | |
List< IItemDropRuleChainAttempt > | ChainedRules [get] |
Properties inherited from IItemDropRule | |
List< IItemDropRuleChainAttempt > | ChainedRules [get] |
Runs multiple drop rules if successes.
bool FewFromRulesRule.CanDrop | ( | DropAttemptInfo | info | ) |
Implements IItemDropRule.
void FewFromRulesRule.ReportDroprates | ( | List< DropRateInfo > | drops, |
DropRateInfoChainFeed | ratesInfo | ||
) |
Implements IItemDropRule.
ItemDropAttemptResult FewFromRulesRule.TryDroppingItem | ( | DropAttemptInfo | info | ) |
Implements IItemDropRule.
ItemDropAttemptResult FewFromRulesRule.TryDroppingItem | ( | DropAttemptInfo | info, |
ItemDropRuleResolveAction | resolveAction | ||
) |
Implements INestedItemDropRule.
|
get |
Implements IItemDropRule.