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

Inherits IItemDropRuleCondition, and IProvideItemConditionDescription.

Public Member Functions

 NamedNPC (string neededName)
 
bool CanDrop (DropAttemptInfo info)
 
bool CanShowItemDropInUI ()
 
string GetConditionDescription ()
 
bool CanDrop (DropAttemptInfo info)
 
bool CanShowItemDropInUI ()
 
string GetConditionDescription ()
 

Public Attributes

string neededName
 

Member Function Documentation

◆ CanDrop()

bool Conditions.NamedNPC.CanDrop ( DropAttemptInfo  info)

◆ CanShowItemDropInUI()

bool Conditions.NamedNPC.CanShowItemDropInUI ( )

◆ GetConditionDescription()

string Conditions.NamedNPC.GetConditionDescription ( )