2 - Holy Fire Bullets no longer inflicts On Fire! 3 - Icy Bullets no longer inflict Glacial State. 4 - Toxibow now inflicts Irradiated for 8 seconds. 5 - Corroded Caustibow no longer inflicts Sulphuric Poisoning but increased duration of Irradiated to 8 seconds. 6 - Flarewing Bow bats now inflict Hellfire. 7 - Arterial Assault no longer inflicts Brimstone Flames. 8 - Contagion no longer inflicts Plague. 9 - Deathwind now inflicts God Slayer Inferno instead of On Fire! and Frostburn. 10 - Drataliornus now only inflicts Dragonfire. 11 - The Maelstrom now inflicts Crush Depth. 12 - Eviscerator now inflicts Burning Blood. 13 - Clamor Rifle now inflicts Eutrophication. 14 - Hellborn now inflicts Hellfire on gun hits. 15 - Helstorm now inflicts Hellfire on gun hits. 16 - Leviatitan no longer inflicts Poisoned. 17 - Needler now inflicts Acid Venom. 18 - Ace's High no longer inflicts Brimstone Flames. 19 - Auralis no longer inflicts Cursed Inferno and Ichor. 20 - Claret Cannon no longer inflicts Brimstone Flames. 21 - Dragon's Breath no longer inflicts On Fire! 22 - Karasawa no longer inflicts any debuffs. 23 - Spyker now inflicts Acid Venom. 24 - Universal Genesis no longer inflicts any debuffs. 25 - Mineral Mortar now inflicts Armor Crunch. 26 - Blissful Bombardier now inflicts Holy Flames instead of Dragonfire. 27 - Chicken Cannon now inflicts Dragonfire. 28 - Scorched Earth no longer inflicts On Fire! 29 - Dragoon Drizzlefish now inflicts Brimstone Flames for 1 second with primary fireballs and 0.5 seconds with split fireballs. 30 - Meowthrower no longer inflicts any debuffs. 31 - Blood Boiler no longer inflicts Brimstone Flames. 32 - Elemental Eruption no longer inflicts any debuffs. 33 - Flak Kraken now inflicts Crush Depth. 34 - Elemental Blaster no longer inflicts any debuffs. 35 - Heavy Laser Rifle no longer inflicts On Fire! 36 - Spetic Skewer no longer inflicts Acid Venom. 37 - Starmada no longer inflicts any debuffs. 38 - Sulphuric Acid Cannon now inflicts Sulphuric Poisoning.
78 lines
2.9 KiB
C#
78 lines
2.9 KiB
C#
using CalamityMod.Buffs.DamageOverTime;
|
|
using CalamityMod.Buffs.StatDebuffs;
|
|
using CalamityMod.Dusts;
|
|
using CalamityMod.Projectiles.Summon;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Terraria.Audio;
|
|
namespace CalamityMod.Projectiles.Ranged
|
|
{
|
|
public class CorrodedShell : ModProjectile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Shell");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Projectile.width = 14;
|
|
Projectile.height = 14;
|
|
Projectile.friendly = true;
|
|
Projectile.DamageType = DamageClass.Ranged;
|
|
Projectile.arrow = true;
|
|
Projectile.ignoreWater = true;
|
|
Projectile.penetrate = 6;
|
|
Projectile.timeLeft = 600;
|
|
Projectile.usesLocalNPCImmunity = true;
|
|
Projectile.localNPCHitCooldown = 10;
|
|
Projectile.aiStyle = ProjAIStyleID.Arrow;
|
|
Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration;
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
Projectile.velocity *= 0.9995f;
|
|
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
|
|
|
if (Projectile.timeLeft % 3 == 0)
|
|
{
|
|
if (Projectile.owner == Main.myPlayer)
|
|
{
|
|
int aura = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<IrradiatedAura>(), (int)(Projectile.damage * 0.15), Projectile.knockBack, Projectile.owner);
|
|
if (aura.WithinBounds(Main.maxProjectiles))
|
|
{
|
|
Main.projectile[aura].DamageType = DamageClass.Ranged;
|
|
Main.projectile[aura].timeLeft = 40;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public override void Kill(int timeLeft)
|
|
{
|
|
Projectile.position = Projectile.Center;
|
|
Projectile.width = Projectile.height = 32;
|
|
Projectile.position = Projectile.position - Projectile.Size / 2f;
|
|
Projectile.maxPenetrate = -1;
|
|
Projectile.penetrate = -1;
|
|
Projectile.Damage();
|
|
SoundEngine.PlaySound(SoundID.Item92, Projectile.Center);
|
|
int count = Main.rand.Next(6, 15);
|
|
for (int i = 0; i < count; i++)
|
|
{
|
|
int idx = Dust.NewDust(Projectile.Center - Projectile.velocity / 2f, 0, 0, (int)CalamityDusts.SulfurousSeaAcid, 0f, 0f, 100, default, 2f);
|
|
Main.dust[idx].velocity *= 2f;
|
|
Main.dust[idx].noGravity = true;
|
|
}
|
|
}
|
|
|
|
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
|
{
|
|
target.AddBuff(ModContent.BuffType<Irradiated>(), 480);
|
|
}
|
|
}
|
|
}
|