tModLoader v2024.09
A mod to make and play Terraria mods
DropLocalPerClientAndResetsNPCMoneyTo0 Class Reference

Inherits CommonDrop.

Public Member Functions

 DropLocalPerClientAndResetsNPCMoneyTo0 (int itemId, int chanceDenominator, int amountDroppedMinimum, int amountDroppedMaximum, IItemDropRuleCondition optionalCondition)
 
override bool CanDrop (DropAttemptInfo info)
 
override ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info)
 
- Public Member Functions inherited from CommonDrop
 CommonDrop (int itemId, int chanceDenominator, int amountDroppedMinimum=1, int amountDroppedMaximum=1, int chanceNumerator=1)
 
virtual bool CanDrop (DropAttemptInfo info)
 
virtual void ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
 
virtual ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info)
 
bool CanDrop (DropAttemptInfo info)
 
void ReportDroprates (List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
 
ItemDropAttemptResult TryDroppingItem (DropAttemptInfo info)
 

Public Attributes

IItemDropRuleCondition condition
 
- Public Attributes inherited from CommonDrop
int amountDroppedMaximum
 
int amountDroppedMinimum
 
int chanceDenominator
 
int chanceNumerator
 
int itemId
 

Additional Inherited Members

- Properties inherited from CommonDrop
List< IItemDropRuleChainAttemptChainedRules [get]
 
- Properties inherited from IItemDropRule
List< IItemDropRuleChainAttemptChainedRules [get]
 

Member Function Documentation

◆ CanDrop()

override bool DropLocalPerClientAndResetsNPCMoneyTo0.CanDrop ( DropAttemptInfo  info)
virtual

Reimplemented from CommonDrop.

◆ TryDroppingItem()

override ItemDropAttemptResult DropLocalPerClientAndResetsNPCMoneyTo0.TryDroppingItem ( DropAttemptInfo  info)
virtual

Reimplemented from CommonDrop.