Files
CalamityModPublic/Projectiles/Rogue/WebBallBol.cs
T
Andrew Marheine 925f6f0247 1 - Bosses are now affected by slowing debuffs but gain a 20 second immunity to them after they wear off.
2 - Reduced the duration of most slowing debuffs.
3 - Cal Clone Soul Seekers cannot fire while she's doing a bullet hell.
4 - Reworked enemy and boss debuff immunities to make more sense.
5 - Increased Aquatic Scourge and Desert Scourge HP because they're now vulnerable to debuffs.
6 - Reduced the damage of Bloodflare ranged set bonus phantoms.
7 - Adjusted DoG's fireball explosion spread.
8 - Leviathan hitboxes should work properly now.
9 - Sun Bats no longer derp out.
2021-05-18 00:57:06 -05:00

61 lines
1.5 KiB
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class WebBallBol : ModProjectile
{
public override string Texture => "CalamityMod/Items/Weapons/Rogue/WebBall";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Web Ball");
}
public override void SetDefaults()
{
projectile.width = 18;
projectile.height = 18;
projectile.friendly = true;
projectile.penetrate = 3;
projectile.timeLeft = 300;
projectile.Calamity().rogue = true;
projectile.aiStyle = 14;
}
public override void AI()
{
if (Main.rand.NextBool(12))
{
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 30, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
}
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
if (projectile.Calamity().stealthStrike == true)
{
target.AddBuff(BuffID.Webbed, 120);
}
else
{
target.AddBuff(BuffID.Webbed, 60);
}
}
public override void OnHitPvp(Player target, int damage, bool crit)
{
if (projectile.Calamity().stealthStrike == true)
{
target.AddBuff(BuffID.Webbed, 120);
}
else
{
target.AddBuff(BuffID.Webbed, 60);
}
}
}
}