Files
CalamityModPublic/Projectiles/Rogue/DestructionExplosion.cs
T
CongratsIsTrash 3597cc9666 Removed several GFB gimmicks that are simply dealing absurd damage
This eliminates the following:
* All Arsenal weapons having zero cooldown on special attacks
* Dragon's Breath mag dealing 250k damage
* Grand Dad's increased damage and knockback
* Hellkite's infinite charge (along with visual effect scaling, because this was simply a visual hazard)
* The Hive nuke spawning more bees
* Luxor's Gift having no cooldown on spawning projectiles
* Seafoam Bomb firing faster and stealth strikes splitting into way more cluster bombs
* Slick Cane having a much higher stealth money cap
* Star of Destruction's explosion dealing more damage but damaging the player
* Supernova's explosion dealing much more damage but pulling the player in and damaging the player
* Xyk's Blessing death effect damage

* Also changes Halibut Cannon to fire its full 25-35 bullets when hitting the 20% chance in GFB instead of 1 bullet
2026-02-11 14:46:38 -05:00

45 lines
1.6 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class DestructionExplosion : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Rogue";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public Player Owner => Main.player[Projectile.owner];
private float ExplosionRadius = 400f;
public override void SetDefaults()
{
//These shouldn't matter because its circular
Projectile.width = 200;
Projectile.height = 200;
Projectile.friendly = true;
Projectile.DamageType = RogueDamageClass.Instance;
Projectile.ignoreWater = true;
Projectile.tileCollide = false;
Projectile.penetrate = -1;
Projectile.timeLeft = 2;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 10;
}
public override void AI()
{
if (Projectile.ai[0] == 1)
{
ExplosionRadius = 800;
}
}
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
if (Projectile.numHits > 0)
Projectile.damage = (int)(Projectile.damage * 0.88f);
if (Projectile.damage < 1)
Projectile.damage = 1;
}
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, ExplosionRadius, targetHitbox);
}
}