Files
CalamityModPublic/Projectiles/Healing/TransfusionTrail.cs
T
mountaindrew10 738240f09e 1 - Reduced how strict the life steal nerf is on higher difficulties.
2 - Removed the Calamity life steal cap because it's highly unnecessary considering vanilla already has a life steal cap that should be used instead.
3 - Adjusted various life steal things to avoid rounding errors, adjusted how much they influence the cooldown, etc.
4 - Made Monstrous Knives no longer insane.
5 - Made life steal consistent for many sources of it.
6 - Made Tarragon Melee Regen buff consistently apply.
7 - Made Reaver Melee Rage buff consistently apply.
8 - Reduced Reaver Rage buff damage increase from 30% to 10%.
9 - Fixed various life steal projectiles not creating proper dust.
10 - Reaver Melee set reduces movement speed and flight time by 30% instead of 20%.
11 - Removed stupid Tarragon Mage heal cooldown.
2024-03-18 15:47:28 -05:00

36 lines
1.2 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Healing
{
public class TransfusionTrail : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Healing";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetDefaults()
{
Projectile.width = 4;
Projectile.height = 4;
Projectile.penetrate = 1;
Projectile.timeLeft = 300;
Projectile.friendly = true;
Projectile.tileCollide = false;
Projectile.extraUpdates = 3;
}
public override void AI()
{
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 5f, 15f);
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.VampireHeal, 0f, 0f, 100);
Main.dust[dust].noGravity = true;
Main.dust[dust].velocity *= 0f;
Main.dust[dust].position.X -= Projectile.velocity.X * 0.2f;
Main.dust[dust].position.Y += Projectile.velocity.Y * 0.2f;
}
}
}