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

◆ CountKillForAchievements()

void Terraria.NPC.CountKillForAchievements ( )
inlineprivate

Definition at line 85453 of file NPC.cs.

85454 {
85455 switch (type)
85456 {
85457 case 125:
85458 case 126:
85459 if (!AnyNPCs((type == 126) ? 125 : 126))
85460 {
85463 }
85464 break;
85465 case 127:
85466 case 134:
85469 break;
85470 case 13:
85471 case 14:
85472 case 15:
85473 if (boss)
85474 {
85476 }
85477 break;
85478 default:
85480 break;
85481 }
85482 }
bool boss
Set to true if the NPC is a boss. Prevents off-screen despawn. Bosses also need [AutoloadBossHead] an...
Definition NPC.cs:1141
static bool AnyNPCs(int Type)
Returns true if there are any active NPC in the world of the given NPC type (F:Terraria....
Definition NPC.cs:106615
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990

References Terraria.GameContent.Achievements.AchievementsHelper.CheckMechaMayhem(), and Terraria.GameContent.Achievements.AchievementsHelper.NotifyNPCKilled().

Referenced by Terraria.NPC.NPCLoot().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: