Added more items to CannotProc
This commit is contained in:
1 parent
94200b251d
commit
d77bef02b0
4 files changed
+6
-4
No files matched your search
@@ -1100,12 +1100,12 @@ namespace CalamityMod.CalPlayer
|
||||
if (npcCheck)
|
||||
{
|
||||
// Umbraphile cannot trigger off of itself. It is guaranteed on stealth strikes and 20% chance otherwise.
|
||||
if (umbraphileSet && ((modProj.stealthStrike && modProj.stealthStrikeHitCount < 3) || Main.rand.NextBool(5)))
|
||||
if (umbraphileSet && ((modProj.stealthStrike && modProj.stealthStrikeHitCount < 3) || Main.rand.NextBool(5)) && !modProj.CannotProc)
|
||||
{
|
||||
int umbraBlastDamage = CalamityUtils.DamageSoftCap(proj.damage * UmbraphileHood.ExplosionDamageRatio, UmbraphileHood.ExplosionDamageSoftcap);
|
||||
Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<UmbraphileBoom>(), umbraBlastDamage, 0f, Player.whoAmI);
|
||||
}
|
||||
if (electricianGlove && modProj.stealthStrike && modProj.stealthStrikeHitCount < 3)
|
||||
if (electricianGlove && modProj.stealthStrike && modProj.stealthStrikeHitCount < 3 && !modProj.CannotProc)
|
||||
{
|
||||
for (int s = 0; s < 3; s++)
|
||||
{
|
||||
|
||||
@@ -4699,7 +4699,7 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
|
||||
// Scuttler's Jewel projectiles can spawn either on-hit or on-kill, but only spawn once per projectile.
|
||||
if (projectile.owner == Main.myPlayer && !projectile.npcProj && !projectile.trap && projectile.CountsAsClass<RogueDamageClass>() && modPlayer.scuttlersJewel && stealthStrike && modPlayer.scuttlerCooldown <= 0 && !JewelSpikeSpawned)
|
||||
if (projectile.owner == Main.myPlayer && !projectile.npcProj && !projectile.trap && projectile.CountsAsClass<RogueDamageClass>() && modPlayer.scuttlersJewel && stealthStrike && modPlayer.scuttlerCooldown <= 0 && !JewelSpikeSpawned && !CannotProc)
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(16);
|
||||
|
||||
@@ -5195,7 +5195,7 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
|
||||
// Make sure the spike doesn't spawn again if it's already been spawned by on-hit.
|
||||
if (modPlayer.scuttlersJewel && stealthStrike && modPlayer.scuttlerCooldown <= 0 && !JewelSpikeSpawned)
|
||||
if (modPlayer.scuttlersJewel && stealthStrike && modPlayer.scuttlerCooldown <= 0 && !JewelSpikeSpawned && !CannotProc)
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(16);
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 5;
|
||||
Projectile.ArmorPenetration = 20;
|
||||
Projectile.Calamity().CannotProc = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
Projectile.alpha = 255;
|
||||
Projectile.timeLeft = 360;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.Calamity().CannotProc = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
Reference in new issue
Block a user