tModLoader v2022.09
A mod to make and play Terraria mods
|
Runs the provided rules in order, stopping after a rule succeeds.
Does not use player luck.
More...
Inherits Terraria.GameContent.ItemDropRules.IItemDropRule, and Terraria.GameContent.ItemDropRules.INestedItemDropRule.
Public Member Functions | |
SequentialRulesNotScalingWithLuckRule (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 Terraria.GameContent.ItemDropRules.IItemDropRule | |
List< IItemDropRuleChainAttempt > | ChainedRules [get] |
Runs the provided rules in order, stopping after a rule succeeds.
Does not use player luck.
bool Terraria.GameContent.ItemDropRules.SequentialRulesNotScalingWithLuckRule.CanDrop | ( | DropAttemptInfo | info | ) |
Implements Terraria.GameContent.ItemDropRules.IItemDropRule.
void Terraria.GameContent.ItemDropRules.SequentialRulesNotScalingWithLuckRule.ReportDroprates | ( | List< DropRateInfo > | drops, |
DropRateInfoChainFeed | ratesInfo | ||
) |
Implements Terraria.GameContent.ItemDropRules.IItemDropRule.
ItemDropAttemptResult Terraria.GameContent.ItemDropRules.SequentialRulesNotScalingWithLuckRule.TryDroppingItem | ( | DropAttemptInfo | info | ) |
Implements Terraria.GameContent.ItemDropRules.IItemDropRule.
ItemDropAttemptResult Terraria.GameContent.ItemDropRules.SequentialRulesNotScalingWithLuckRule.TryDroppingItem | ( | DropAttemptInfo | info, |
ItemDropRuleResolveAction | resolveAction | ||
) |
|
get |
Implements Terraria.GameContent.ItemDropRules.IItemDropRule.