public static void KillHook(On.Terraria.Projectile.orig_Kill orig, Projectile self) { if (self.type == ModContent.ProjectileType <BlackEGO>() || self.type == ModContent.ProjectileType <WhiteEGO>() || self.type == ModContent.ProjectileType <BlackButterfly>() || self.type == ModContent.ProjectileType <WhiteButterfly>()) { if (self.alpha < 220) { self.timeLeft = 99999; self.penetrate = -1; return; } } orig.Invoke(self); }
public static void KillHook(On.Terraria.Projectile.orig_Kill orig, Projectile self) { if (self.type == ModContent.ProjectileType <MusicRing1>() || self.type == ModContent.ProjectileType <MusicRing2>() || self.type == ModContent.ProjectileType <MusicRing3>() || self.type == ModContent.ProjectileType <MusicRing4>()) { if (self.ai[0] <= 1) { self.penetrate = -1; self.timeLeft = 99999; return; } } orig.Invoke(self); }