Пример #1
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(mod.BuffType("Infected"), Main.rand.Next(2, 5) * 60);
 }
Пример #2
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(20, 180, false);
 }
Пример #3
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(BuffID.OnFire, 300);
 }
Пример #4
0
 public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
 {
     // Add Onfire buff to the NPC for 1 second
     // 60 frames = 1 second
     target.AddBuff(BuffID.Frostburn, 400);
 }
Пример #5
0
 public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(BuffID.Frostburn, (60 * Main.rand.Next(1, 4)), false);
     target.AddBuff(mod.BuffType("Frozen"), 60, false);
 }
Пример #6
0
 public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
 {
     target.AddBuff(BuffID.OnFire, 100);
 }
Пример #7
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(BuffID.Electrified, 180);
 }
Пример #8
0
        public override void OnHitNPC(NPC n, int damage, float knockback, bool crit)
        {
            Player owner = Main.player[projectile.owner];

            n.AddBuff(137, 180);
        }
Пример #9
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(mod.BuffType("greekfire"), 120);
     target.AddBuff(BuffID.Ichor, 300);
 }
Пример #10
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     EnemyHit = true;
     target.AddBuff(ModContent.BuffType <Buffs.DiscordInferno>(), 600);
 }
Пример #11
0
 public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(BuffID.OnFire, 60);                          //Add Onfire buff to the NPC for 1 second
 }
Пример #12
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     // 造成的伤害越高,buff持续时间越长?
     target.AddBuff(mod.BuffType("<你的buff名字>"), damage);
 }
Пример #13
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(BuffID.Poisoned, 300);
     hitcooldown += 60;
 }
Пример #14
0
 public override void OnHitNPC(NPC n, int damage, float knockback, bool crit)
 {
     n.AddBuff(24, 300);
 }
Пример #15
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(ModContent.BuffType <CurseoftheMoon>(), 600);
     target.immune[projectile.owner] = 1;
 }
Пример #16
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(ModContent.BuffType <BlightedFlames>(), 260, false);
 }
Пример #17
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(BuffID.Frostburn, 360);
 }
Пример #18
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.immune[projectile.owner] = 6;
     target.AddBuff(mod.BuffType("LightningRod"), Main.rand.Next(300, 1200));
 }
Пример #19
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.immune[projectile.owner] = 1;
     target.AddBuff(BuffID.Lovestruck, 300);
 }
Пример #20
0
 public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(mod.BuffType("Patience"), 120);
 }
Пример #21
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     projectile.Kill();
     target.AddBuff(ModContent.BuffType <StackingFireBuff>(), 180, false);
     target.AddBuff(ModContent.BuffType <HolyLight>(), 180, false);
 }
Пример #22
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(ModContent.BuffType <LightRage>(), 80, false);
 }
Пример #23
0
 public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)
 {
     target.AddBuff(BuffID.Venom, Main.rand.Next(3, 6) * 60, false);
 }
Пример #24
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(mod.BuffType("MutantNibble"), 600);
     target.AddBuff(BuffID.ShadowFlame, 600);
 }
Пример #25
0
        // think of a recipe for this sword

        public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
        {
            target.AddBuff(BuffID.OnFire, 120);
            target.AddBuff(BuffID.Frostburn, 120);
        }
Пример #26
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(BuffID.Poisoned, 240, true);
 }
Пример #27
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(BuffID.Frostburn, 240);
     target.immune[projectile.owner] = 6;
 }
Пример #28
0
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.immune[projectile.owner] = 5;
     target.AddBuff(mod.BuffType("BlightFlame"), 180, false);
 }
 public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
 {
     target.AddBuff(mod.BuffType("EssenceTrap"), 540, true);
 }
Пример #30
0
 public override void Update(NPC npc, ref int buffIndex)
 {
     npc.AddBuff(BuffID.Werewolf, 1);
     npc.AddBuff(mod.BuffType <Vampire>(), 1);
 }