|
TModLoader v1.4.4.9
TModLoader source code documentation
|
| int Terraria.NPC.damage |
The amount of contact damage this NPC deals.
Changing this WILL NOT change the amount of damage done by projectiles.
Usually damage is scaled by some factor when NPC spawn projectiles with Projectile.NewProjectile in AI code. For example, passing in (int)(NPC.damage * 0.5f) as the Damage parameter.
The List of NPCs wiki pagecan be useful for finding appropriate values.
Definition at line 1027 of file NPC.cs.
Referenced by Terraria.NPC.AI_003_Fighters(), Terraria.NPC.AI_069_DukeFishron(), Terraria.NPC.AI_107_ImprovedWalkers(), Terraria.NPC.AI_108_DivingFlyer(), Terraria.NPC.AI_120_HallowBoss(), Terraria.NPC.HitModifiers.GetDamage(), Terraria.NPC.getGoodAdjustments(), Terraria.ModLoader.Default.Patreon.OrianSetEffectPlayer.PostUpdate(), Terraria.GameContent.Bestiary.NPCStatsReportInfoElement.RefreshStats(), Terraria.NPC.ScaleStats(), Terraria.NPC.ScaleStats_ApplyExpertTweaks(), Terraria.NPC.ScaleStats_ApplyGameMode(), Terraria.NPC.ScaleStats_ApplyMultiplayerStats(), Terraria.NPC.ScaleStats_UseStrengthMultiplier(), Terraria.NPC.SetDefaults(), Terraria.NPC.SetDefaultsFromNetId(), and Terraria.NPC.VanillaAI_Inner().