TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ CanDrop()

bool Terraria.GameContent.ItemDropRules.Conditions.MissingTwin.CanDrop ( DropAttemptInfo info)
inline

Implements Terraria.GameContent.ItemDropRules.IItemDropRuleCondition.

Definition at line 469 of file Conditions.cs.

470 {
471 int type = 125;
472 if (info.npc.type == 125)
473 {
474 type = 126;
475 }
476 return !NPC.AnyNPCs(type);
477 }

References Terraria.NPC.AnyNPCs().

+ Here is the call graph for this function: