Files
CalamityModPublic/Projectiles/Boss/SandPoisonCloudOldDuke.cs
T
Andrew Marheine 99fd27bd88 1 - Yharon no longer sticks to a position before doing an attack.
2 - Yharon decreases his fast charge telegraph time as he enters later phases.
3 - Ultimus Cleaver and Inferna Cutter no longer benefit from true melee boosts.
4 - Reduced the potency of defense damage.
5 - Lava and honey no longer inflict sulphur poison while in the sulphur sea.
6 - Reduced Elysian Wings move speed boost.
7 - Reduced Hadarian Wings move speed boost while wearing Astral Armor.
8 - Buffed MOAB jump speed boost.
9 - Nerfed Heart of the Elements damage in post-ML.
10 - Nerfed Holy Fire Bullet damage.
11 - Nerfed Angel Wings, Demon Wings, Butterfly Wings, Fairy Wings, Bone Wings, Flame Wings, Ghost Wings, Beetle Wings, Leaf Wings, Bat Wings and Festive Wings extra bonuses.
12 - DoG head and tail damage multiplier scales with distance from target.
13 - DoG phase 1 and 2 fire a single laser directly at the player during laser attacks in expert+.
14 - Old Duke Tooth Balls and projectiles no longer i-frame fuck the player.
15 - Increased Aquatic Scourge despawn distance from 500 tiles to 800 to prevent fear of accidental despawns.
16 - Golem Head hitbox fix, I hope.
17 - Greatly increased post-DoG event spawn rates.
18 - Increased Elemental Axe i-frames from 6 to 15.
2020-12-16 08:14:49 -06:00

74 lines
2.0 KiB
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Boss
{
public class SandPoisonCloudOldDuke : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/Boss/SandPoisonCloud";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Toxic Cloud");
Main.projFrames[projectile.type] = 4;
}
public override void SetDefaults()
{
projectile.width = 32;
projectile.height = 32;
projectile.hostile = true;
projectile.alpha = 255;
projectile.penetrate = -1;
projectile.tileCollide = false;
projectile.ignoreWater = true;
projectile.timeLeft = 1800;
cooldownSlot = 1;
}
public override void AI()
{
Lighting.AddLight(projectile.Center, 0.5f, 0.3f, 0f);
projectile.frameCounter++;
if (projectile.frameCounter > 9)
{
projectile.frame++;
projectile.frameCounter = 0;
}
if (projectile.frame > 3)
projectile.frame = 0;
projectile.velocity *= 0.995f;
if (projectile.timeLeft < 180)
{
projectile.damage = 0;
if (projectile.alpha < 255)
{
projectile.alpha += 5;
if (projectile.alpha > 255)
{
projectile.alpha = 255;
projectile.Kill();
}
}
}
else if (projectile.alpha > 30)
{
projectile.alpha -= 30;
if (projectile.alpha < 30)
projectile.alpha = 30;
}
}
public override bool CanHitPlayer(Player target) => projectile.timeLeft >= 180;
public override void OnHitPlayer(Player target, int damage, bool crit)
{
target.AddBuff(BuffID.Venom, 300);
}
}
}