Files
CalamityModPublic/Projectiles/Rogue/EclipsesSmol.cs
T
Storm2103 29f0e18f98 Nerfed:
Executioner's blade: just stat nerfs

Eclipse's fall: Nerfed dmg multipliers, spear spawnrate and max spear amount

God's Paranoia: it now actually does what the tooltip says as before it was literally lying about spawning kunai faster, nerfed velocity, nerfed kunai spawnrate, no longer homes through walls, reduced homing reach, UseTime and animation increased.
2023-09-02 23:34:02 -06:00

43 lines
1.7 KiB
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class EclipsesSmol : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Rogue";
public override void SetDefaults()
{
Projectile.width = Projectile.height = 24;
Projectile.friendly = true;
Projectile.tileCollide = false;
Projectile.ignoreWater = true;
Projectile.DamageType = RogueDamageClass.Instance;
Projectile.MaxUpdates = 2;
Projectile.timeLeft = 75 * Projectile.MaxUpdates;
}
public override void AI()
{
Lighting.AddLight(Projectile.Center, 0.5f, 0.4f, 0.15f);
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4;
CalamityUtils.HomeInOnNPC(Projectile, true, 200f, 16f, 20f);
}
public override bool PreDraw(ref Color lightColor)
{
Texture2D tex = ModContent.Request<Texture2D>(Texture).Value;
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() * 0.5f, Projectile.scale, SpriteEffects.None);
return false;
}
public override void PostDraw(Color lightColor)
{
Texture2D glow = ModContent.Request<Texture2D>(Texture + "Glow").Value;
Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() * 0.5f, Projectile.scale, SpriteEffects.None);
}
}
}