1 - Certain projectiles can no longer hit town NPCs.
This commit is contained in:
1 parent
1562b751e4
commit
63e02ec355
51 files changed
+58
-131
No files matched your search
@@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
PulseBurst(4f, 5f);
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 280;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 280 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
|
||||
@@ -79,28 +79,14 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanHitPlayer(Player target)
|
||||
{
|
||||
if (projectile.timeLeft < 40)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override bool CanHitPlayer(Player target) => projectile.timeLeft > 40;
|
||||
|
||||
public override void OnHitPlayer(Player target, int damage, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.Poisoned, 600);
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.timeLeft < 40)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft > 40;
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.magic = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.timeLeft = 120;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.timeLeft = 180;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.magic = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 50;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 50 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.magic = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.timeLeft = 90;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 60;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 60 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.extraUpdates = 1;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.magic = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 40;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 40 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -70,19 +70,9 @@ namespace CalamityMod.Projectiles.Magic
|
||||
target.ExoDebuffs();
|
||||
}
|
||||
|
||||
// Cannot deal damage for the first several frames of existence.
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.timeLeft >= 110)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
// Cannot deal damage for the first several frames of existence.
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 110;
|
||||
|
||||
public override bool CanHitPvp(Player target)
|
||||
{
|
||||
return projectile.timeLeft < 110;
|
||||
}
|
||||
public override bool CanHitPvp(Player target) => projectile.timeLeft < 110;
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.timeLeft = 180;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.timeLeft = 150;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 120;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 120 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -110,14 +110,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
target.AddBuff(ModContent.BuffType<ArmorCrunch>(), 240);
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.ai[0] == 1f)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public override bool? CanHitNPC(NPC target) => projectile.ai[0] != 1f;
|
||||
|
||||
public override bool CanHitPvp(Player target) => projectile.ai[0] != 1f;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.timeLeft = 120;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.extraUpdates = 3;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.timeLeft = 360;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 240;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 240 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.timeLeft = 90;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 75;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 75 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.melee = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.melee = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.extraUpdates = 1;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -89,17 +89,9 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.ai[0] <= 42f)
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
public override bool? CanHitNPC(NPC target) => projectile.ai[0] > 42f;
|
||||
|
||||
public override bool CanHitPvp(Player target)
|
||||
{
|
||||
return projectile.ai[0] > 42f;
|
||||
}
|
||||
public override bool CanHitPvp(Player target) => projectile.ai[0] > 42f;
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.timeLeft = 180;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.extraUpdates = 3;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 270;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 270 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.timeLeft = 90;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 75;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 75 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.extraUpdates = 1;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.aiStyle = 1;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.alpha = 255;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.ranged = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.timeLeft = 180;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.timeLeft = 240;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 210;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 210 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
aiType = ProjectileID.WoodenArrowFriendly;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.aiStyle = 1;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
aiType = ProjectileID.Bullet;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
|
||||
@@ -116,14 +116,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.ai[0] > 0f)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public override bool? CanHitNPC(NPC target) => projectile.ai[0] <= 0f;
|
||||
|
||||
public override bool CanHitPvp(Player target) => projectile.ai[0] <= 0f;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.timeLeft = 180;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -82,19 +82,9 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
}
|
||||
|
||||
// Cannot deal damage for the first several frames of existence.
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.timeLeft >= 100)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
// Cannot deal damage for the first several frames of existence.
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 100;
|
||||
|
||||
public override bool CanHitPvp(Player target)
|
||||
{
|
||||
return projectile.timeLeft < 100;
|
||||
}
|
||||
public override bool CanHitPvp(Player target) => projectile.timeLeft < 100;
|
||||
}
|
||||
}
|
||||
@@ -90,14 +90,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.ai[0] == 1f)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public override bool? CanHitNPC(NPC target) => projectile.ai[0] != 1f;
|
||||
|
||||
public override bool CanHitPvp(Player target) => projectile.ai[0] != 1f;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.alpha = 150;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 210;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 210 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.timeLeft = Lifetime;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < Lifetime - NoHomingFrames;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < Lifetime - NoHomingFrames && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 270;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 270 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void PostAI()
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.timeLeft = 180;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.coldDamage = true;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 150 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
projectile.timeLeft = 200;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 170;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 170 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
projectile.extraUpdates = 1;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 90 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
projectile.extraUpdates = 2;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 270;
|
||||
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 270 && target.CanBeChasedBy(projectile);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
@@ -201,19 +201,9 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
target.AddBuff(ModContent.BuffType<Vaporfied>(), 120);
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.alpha >= 128)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public override bool? CanHitNPC(NPC target) => projectile.alpha < 128;
|
||||
|
||||
public override bool CanHitPvp(Player target)
|
||||
{
|
||||
return projectile.alpha < 128;
|
||||
}
|
||||
public override bool CanHitPvp(Player target) => projectile.alpha < 128;
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user