Files
CalamityModPublic/Projectiles/Summon/EyeOfNightCell.cs
T
mountaindrew10 c098604fd0 1 - Blood Clot Staff now inflicts Burning Blood.
2 - Cinder Blossom Staff now inflicts On Fire!
3 - Eye of Night no longer inflicts any debuffs.
4 - Caustic Staff now inflicts Hellfire instead of On Fire!
5 - Daedalus Golem Staff pellets now inflict Frostburn.
6 - Forgotten Apex Wand now has a 33% chance to inflict Armor Crunch.
7 - Gastric Belcher Staff acid vomit now inflicts Acid Venom.
8 - Tundra Flame Blossoms Staff now inflicts On Fire!
9 - Dragonblood Disgorger large dragon blood fire now inflicts Burning Blood.
10 - Elemental Axe no longer inflicts any debuffs.
11 - Flowers of Mortality no longer inflicts any debuffs.
12 - Midnight Sun Beacon no longer inflicts any debuffs.
13 - Staff of the Mechworm now inflicts God Slayer Inferno.
14 - Yharon's Kindle Staff now inflicts Dragonfire.
15 - Caustic Croaker Staff now inflicts Irradiated.
16 - Orthocera Shell now inflicts Irradiated.
17 - Cadaverous Carrion now inflicts Sulphuric Poisoning.
18 - Energy Staff now inflicts Holy Flames.
19 - Guidelight of Oblivion no longer inflicts any debuffs.
20 - Slime Puppet Staff now inflicts Slime.
21 - Cinder of Lament now inflicts Vulnerability Hex.
22 - Universe Splitter no longer inflicts Nightwither.
2022-12-04 23:10:15 -06:00

51 lines
1.7 KiB
C#

using CalamityMod.Dusts;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Summon
{
public class EyeOfNightCell : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Cell");
ProjectileID.Sets.MinionShot[Projectile.type] = true;
}
public override void SetDefaults()
{
Projectile.friendly = true;
Projectile.width = Projectile.height = 10;
Projectile.minion = true;
Projectile.minionSlots = 0f;
Projectile.ignoreWater = true;
Projectile.tileCollide = false;
Projectile.penetrate = 2;
Projectile.timeLeft = 180;
Projectile.extraUpdates = 1;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 90;
Projectile.DamageType = DamageClass.Summon;
}
public override void AI()
{
if (!Main.dedServ && Projectile.velocity.Length() > 5f)
Dust.NewDustPerfect(Projectile.Center, (int)CalamityDusts.SulfurousSeaAcid).noGravity = true;
Projectile.StickyProjAI(3);
}
public override void Kill(int timeLeft)
{
if (!Main.dedServ)
{
for (int i = 0; i < 10; i++)
Dust.NewDustDirect(Projectile.position, 36, 36, (int)CalamityDusts.SulfurousSeaAcid).noGravity = true;
}
}
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) => Projectile.ModifyHitNPCSticky(4, true);
}
}