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

◆ SetDefaultsKeepPlayerInteraction()

void Terraria.NPC.SetDefaultsKeepPlayerInteraction ( int Type)
inline

Definition at line 3343 of file NPC.cs.

3344 {
3345 bool[] array = new bool[playerInteraction.Length];
3346 for (int i = 0; i < playerInteraction.Length; i++)
3347 {
3348 array[i] = playerInteraction[i];
3349 }
3350 SetDefaults(Type);
3351 for (int j = 0; j < playerInteraction.Length; j++)
3352 {
3353 playerInteraction[j] = array[j];
3354 }
3355 }
void SetDefaults(int Type, NPCSpawnParams spawnparams=default(NPCSpawnParams))
Definition NPC.cs:3378
bool[] playerInteraction
Tracks which T:Terraria.Players have damaged this NPC. Damaging boss minions or other parts of a boss...
Definition NPC.cs:529

References Terraria.NPC.playerInteraction, and Terraria.NPC.SetDefaults().

Referenced by Terraria.NPC.AI_006_Worms(), and Terraria.NPC.CloneDefaults().

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