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

◆ OnKillNPC()

void Terraria.Player.OnKillNPC ( ref NPCKillAttempt attempt,
object externalKillingBlowSource )
inline

Definition at line 19875 of file Player.cs.

19876 {
19877 if (Main.myPlayer == whoAmI && externalKillingBlowSource is Item { type: 5096 })
19878 {
19879 AddBuff(336, 420, quiet: false);
19880 }
19881 }
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Definition Player.cs:4441

References Terraria.Main.myPlayer.