terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ OnKillNPC()

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

Definition at line 6315 of file Player.cs.

6316 {
6317 if (!true)
6318 {
6319 }
6320 int myPlayer = Main.myPlayer;
6321 int whoAmI = this.whoAmI;
6322 if (externalKillingBlowSource != null)
6323 {
6324 int num = 336;
6325 int num2 = 420;
6326 long num3 = 0L;
6327 long num4 = 0L;
6328 this.AddBuff(num, num2, num3 != 0L, num4 != 0L);
6329 return;
6330 }
6331 }
class f__AnonymousType0<< Count > j__TPar
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Definition Player.cs:2280

References Terraria.Player.AddBuff(), j__TPar, System.L, Terraria.Main.myPlayer, and Terraria.Entity.whoAmI.