|
TModLoader v1.4.4.9
TModLoader source code documentation
|
| bool Terraria.NPC.friendly |
Indicates that an NPC is friendly to players. If true, a player won't damage the NPC and the NPC won't deal contact damage to players, unless otherwise forced.
Mostly set to true for town npc and rescuable town npc.
Naturally spawned critter NPC that are F:Terraria.Main.npcCatchable will automatically be friendly for 1.5 seconds after spawning.
Definition at line 1197 of file NPC.cs.
Referenced by Terraria.NPC.AI_001_Slimes(), Terraria.NPC.AI_007_TownEntities(), Terraria.ModLoader.Default.Patreon.OrianSetEffectPlayer.PostUpdate(), Terraria.NPC.ScaleStats(), Terraria.NPC.SetDefaults(), Terraria.Cinematics.DD2Film.SpawnGoblin(), Terraria.Cinematics.DD2Film.SpawnJavalinThrower(), Terraria.Cinematics.DD2Film.SpawnWitherBeast(), and Terraria.NPC.VanillaAI_Inner().