2 - PBG and rev+ Queen Bee can no longer get stuck in a loop. 3 - Polterghast charge attack sync for multiplayer. 4 - Ravager body slam attack in phase 2 changed to be less weird, hopefully. 5 - Ravager detached head behaves differently. 6 - Rev+ Moon Lord phantasmal eyes and spheres travel a bit quicker. 7 - Sulphurous sea geysers deal less damage. 8 - NPCStat file finished, for now.
60 lines
1.9 KiB
C#
60 lines
1.9 KiB
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Projectiles.Boss
|
|
{
|
|
public class ShadeNimbusHostile : ModProjectile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Shade Nimbus");
|
|
Main.projFrames[projectile.type] = 6;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
projectile.width = 54;
|
|
projectile.height = 28;
|
|
projectile.tileCollide = false;
|
|
projectile.ignoreWater = true;
|
|
projectile.hostile = true;
|
|
projectile.timeLeft = 360;
|
|
projectile.penetrate = -1;
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
projectile.frameCounter++;
|
|
if (projectile.frameCounter > 8)
|
|
{
|
|
projectile.frameCounter = 0;
|
|
projectile.frame++;
|
|
if (projectile.frame > 5)
|
|
{
|
|
projectile.frame = 0;
|
|
}
|
|
}
|
|
projectile.ai[1] += 1f;
|
|
if (projectile.ai[1] >= 300f)
|
|
{
|
|
projectile.alpha += 5;
|
|
if (projectile.alpha > 255)
|
|
{
|
|
projectile.alpha = 255;
|
|
projectile.Kill();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
projectile.ai[0] += 1f;
|
|
if (projectile.ai[0] >= 45f)
|
|
{
|
|
projectile.ai[0] = 0f;
|
|
int num414 = (int)(projectile.position.X + 14f + (float)Main.rand.Next(projectile.width - 28));
|
|
int num415 = (int)(projectile.position.Y + (float)projectile.height + 4f);
|
|
Projectile.NewProjectile((float)num414, (float)num415, 0f, 4f, ModContent.ProjectileType<ShaderainHostile>(), projectile.damage, 0f, Main.myPlayer, 0f, 0f);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|