Surge Driver primary, Spine of Thanatos and Photon Ripper inflict Miracle Blight.
This commit is contained in:
1 parent
2e62796e60
commit
cb0e54649a
6 files changed
+30
-5
No files matched your search
@@ -86,6 +86,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
// Snipe blast. Done via a held projectile.
|
||||
else
|
||||
Projectile.NewProjectile(source, gunTip, shootVelocity, ModContent.ProjectileType<SurgeDriverHoldout>(), 0, knockback, player.whoAmI);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -205,5 +206,9 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color lightColor) => new Color(Projectile.Opacity, Projectile.Opacity, Projectile.Opacity, 0);
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
|
||||
public override void OnHitPvp(Player target, int damage, bool crit) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
@@ -141,5 +142,9 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
// Prevent the crystals from utilizing velocity. Their movement is entirely dependant on Center setting.
|
||||
public override bool ShouldUpdatePosition() => false;
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
|
||||
public override void OnHitPvp(Player target, int damage, bool crit) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Melee
|
||||
@@ -50,5 +51,9 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
|
||||
public override void OnHitPvp(Player target, int damage, bool crit) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
@@ -56,5 +57,9 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
Main.EntitySpriteDraw(texture, drawPosition, frame, Color.White, 0f, origin, 1.6f, SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
|
||||
public override void OnHitPvp(Player target, int damage, bool crit) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Projectiles.BaseProjectiles;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Projectiles.BaseProjectiles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
@@ -80,8 +81,11 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
LaserLength = Projectile.Distance(target.Center);
|
||||
CreateExplosion(target.Center);
|
||||
target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
}
|
||||
|
||||
public override void OnHitPvp(Player target, int damage, bool crit) => target.AddBuff(ModContent.BuffType<MiracleBlight>(), 300);
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
Vector2 laserEnd = Projectile.Center + Projectile.velocity * LaserLength;
|
||||
|
||||
Reference in new issue
Block a user