2 - Perf Hive projectiles go through blocks until they go past the point on the Y axis that the target player is on. 3 - Old Duke now ACTUALLY FOR REAL looks in the direction he's about to dash in before dashing. 4 - Eater of Worlds is immune to most debuffs in Malice Mode. 5 - Cal Clone brimstone gigablast split shots no longer deal SCal bullet hell damage. 6 - Cal Clone bullet hell hellblasts don't accelerate as fast. 7 - Yharon split fireballs fall more smoothly. 8 - T Hanos laser noise is louder.
62 lines
1.8 KiB
C#
62 lines
1.8 KiB
C#
using Microsoft.Xna.Framework;
|
|
using System;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Projectiles.Boss
|
|
{
|
|
public class IchorShot : ModProjectile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Ichor Shot");
|
|
Main.projFrames[projectile.type] = 6;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
projectile.width = 12;
|
|
projectile.height = 12;
|
|
projectile.hostile = true;
|
|
projectile.tileCollide = false;
|
|
projectile.timeLeft = 420;
|
|
projectile.penetrate = 1;
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
if (projectile.position.Y > projectile.ai[1])
|
|
projectile.tileCollide = true;
|
|
|
|
projectile.frameCounter++;
|
|
if (projectile.frameCounter > 4)
|
|
{
|
|
projectile.frame++;
|
|
projectile.frameCounter = 0;
|
|
}
|
|
if (projectile.frame > 5)
|
|
projectile.frame = 0;
|
|
|
|
projectile.rotation = (float)Math.Atan2(projectile.velocity.Y, projectile.velocity.X) + MathHelper.PiOver2;
|
|
|
|
int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 170, 0f, 0f, 100, default, 0.5f);
|
|
Main.dust[num469].noGravity = true;
|
|
Main.dust[num469].velocity *= 0f;
|
|
|
|
projectile.velocity.Y += 0.06f;
|
|
projectile.velocity.X *= 0.995f;
|
|
}
|
|
|
|
public override void OnHitPlayer(Player target, int damage, bool crit)
|
|
{
|
|
target.AddBuff(BuffID.Ichor, 180);
|
|
}
|
|
|
|
public override Color? GetAlpha(Color lightColor)
|
|
{
|
|
return new Color(200, 200, 50, projectile.alpha);
|
|
}
|
|
}
|
|
}
|