tModLoader v2024.11
A mod to make and play Terraria mods
Conditions.IsUsingSpecificAIValues Class Reference

Inherits IItemDropRuleCondition, and IProvideItemConditionDescription.

Public Member Functions

 IsUsingSpecificAIValues (int aislot, float valueToMatch)
 
bool CanDrop (DropAttemptInfo info)
 Whether or not the item using this drop rule can drop. More...
 
bool CanShowItemDropInUI ()
 Whether or not the item using this drop rule will show in the Bestiary drops listing. This is typically less restrictive than the CanDrop(DropAttemptInfo) logic and usually only limits drop visibility for conditions that represent world state that can't change, such as the world difficulty or world evil choice. Most other conditions just return true, hinting to the player that the item could potentially drop even if the drop conditions aren't currently fully met. More...
 
string GetConditionDescription ()
 
bool CanDrop (DropAttemptInfo info)
 Whether or not the item using this drop rule can drop. More...
 
bool CanShowItemDropInUI ()
 Whether or not the item using this drop rule will show in the Bestiary drops listing. This is typically less restrictive than the CanDrop(DropAttemptInfo) logic and usually only limits drop visibility for conditions that represent world state that can't change, such as the world difficulty or world evil choice. Most other conditions just return true, hinting to the player that the item could potentially drop even if the drop conditions aren't currently fully met. More...
 
string GetConditionDescription ()
 

Public Attributes

int aiSlotToCheck
 
float valueToMatch
 

Member Function Documentation

◆ CanDrop()

bool Conditions.IsUsingSpecificAIValues.CanDrop ( DropAttemptInfo  info)

Whether or not the item using this drop rule can drop.

Implements IItemDropRuleCondition.

◆ CanShowItemDropInUI()

bool Conditions.IsUsingSpecificAIValues.CanShowItemDropInUI ( )

Whether or not the item using this drop rule will show in the Bestiary drops listing. This is typically less restrictive than the CanDrop(DropAttemptInfo) logic and usually only limits drop visibility for conditions that represent world state that can't change, such as the world difficulty or world evil choice. Most other conditions just return true, hinting to the player that the item could potentially drop even if the drop conditions aren't currently fully met.

Implements IItemDropRuleCondition.

◆ GetConditionDescription()

string Conditions.IsUsingSpecificAIValues.GetConditionDescription ( )