Pauldron & Ambergris CC nerfs
- Pauldron only explodes on first hit target - Both Pauldron and Ambergris lose 33% damage per hit enemy - Due to having manual pierce falloff, they are now exempt from global pierce resist This leaves them identical on single targets but should reduce how hard they maul events
This commit is contained in:
1 parent
40fa9d850a
commit
68aeda6a19
2 files changed
+14
-3
No files matched your search
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
@@ -12,6 +12,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
[PierceResistException]
|
||||
public class LeviAmberDash : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Typeless";
|
||||
@@ -138,7 +139,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
dust2.noGravity = false;
|
||||
dust2.fadeIn = Main.rand.NextFloat(0f, 1.2f);
|
||||
}
|
||||
|
||||
Projectile.damage = (int)(Projectile.damage * 0.67f);
|
||||
}
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, ExplosionRadius, targetHitbox);
|
||||
public override bool? CanDamage() => (isAlive ? null : false);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
@@ -11,6 +12,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
[PierceResistException]
|
||||
public class PauldronDash : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Typeless";
|
||||
@@ -22,6 +24,8 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
public bool isAlive = true;
|
||||
public bool visuals => Owner.Calamity().sPauldronVisual;
|
||||
public Vector2 aimVel;
|
||||
|
||||
bool hasHit = false;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = (int)ExplosionRadius;
|
||||
@@ -154,7 +158,13 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
|
||||
Owner.SetScreenshake(4f);
|
||||
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), target.Center, Vector2.Zero, ModContent.ProjectileType<PauldronExplosion>(), Projectile.damage / 5, 0, Projectile.owner);
|
||||
if (!hasHit)
|
||||
{
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), target.Center, Vector2.Zero, ModContent.ProjectileType<PauldronExplosion>(), Projectile.damage / 5, 0, Projectile.owner);
|
||||
hasHit = true;
|
||||
}
|
||||
|
||||
Projectile.damage = (int)(Projectile.damage * 0.67f);
|
||||
}
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, ExplosionRadius, targetHitbox);
|
||||
public override bool? CanDamage() => (isAlive ? null : false);
|
||||
|
||||
Reference in new issue
Block a user