Postmortem holdout bugfixes
Also made Exorcism stealth look slightly better
This commit is contained in:
1 parent
c465c3a7bd
commit
883bf534c2
5 files changed
+32
No files matched your search
@@ -154,6 +154,13 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
if (hitTimer > 0)
|
||||
hitTimer--;
|
||||
|
||||
if (Owner.dead)
|
||||
{
|
||||
EndSounds();
|
||||
Projectile.Kill();
|
||||
return;
|
||||
}
|
||||
|
||||
Owner.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, (alteredRotation + MathHelper.PiOver2 * -Projectile.direction) + (Owner.direction == -1 ? MathHelper.Pi : 0));
|
||||
|
||||
Vector2 handPos = Owner.GetBackHandPosition(CompositeArmStretchAmount.None, Owner.compositeBackArm.rotation) + (Owner.compositeBackArm.rotation + MathHelper.PiOver2).ToRotationVector2() * 4;
|
||||
|
||||
@@ -55,6 +55,11 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public override bool? CanDamage() => (flung ? null : false);
|
||||
public override void AI()
|
||||
{
|
||||
if (Owner.dead && !flung)
|
||||
{
|
||||
Projectile.Kill();
|
||||
return;
|
||||
}
|
||||
if (Owner.HeldItem.type != ModContent.ItemType<PulseGrenade>())
|
||||
{
|
||||
Projectile.Kill();
|
||||
|
||||
@@ -46,6 +46,12 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
}
|
||||
public override void HoldoutAI()
|
||||
{
|
||||
if (Owner.dead)
|
||||
{
|
||||
Projectile.Kill();
|
||||
return;
|
||||
}
|
||||
|
||||
if (flashVis1 > 0) flashVis1 -= 0.2f; if (flashVis1 < 0) flashVis1 = 0;
|
||||
if (flashVis2 > 0) flashVis2 -= 0.2f; if (flashVis2 < 0) flashVis2 = 0;
|
||||
|
||||
|
||||
@@ -55,6 +55,11 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public override bool? CanDamage() => (flung && tileHits == 0 ? null : false);
|
||||
public override void AI()
|
||||
{
|
||||
if (Owner.dead && !flung)
|
||||
{
|
||||
Projectile.Kill();
|
||||
return;
|
||||
}
|
||||
// The main color shifting
|
||||
float rate = (Main.GlobalTimeWrappedHourly * 6);
|
||||
List<Color> eColors = new List<Color>()
|
||||
|
||||
@@ -55,6 +55,11 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public override bool? CanDamage() => ((flung && !inSky && !hitTiles && impaleDist == Vector2.Zero) ? null : false);
|
||||
public override void AI()
|
||||
{
|
||||
if (Owner.dead && !flung)
|
||||
{
|
||||
Projectile.Kill();
|
||||
return;
|
||||
}
|
||||
if (stealth && Projectile.ai[2] != 5) // Multiplayer Syncing?
|
||||
{
|
||||
Projectile.ai[2] = 5;
|
||||
@@ -426,6 +431,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Color glowColor = Color.Lerp(mainColor, Color.Khaki, glowUp - 1);
|
||||
Texture2D tex = TextureAssets.Projectile[Type].Value;
|
||||
Asset<Texture2D> glowBlade = ModContent.Request<Texture2D>("CalamityMod/Particles/GlowBlade");
|
||||
Asset<Texture2D> glowBottom = ModContent.Request<Texture2D>("CalamityMod/Particles/SquareRotated");
|
||||
Asset<Texture2D> woosh = ModContent.Request<Texture2D>("CalamityMod/Particles/VerticalSmearLarge");
|
||||
|
||||
if (hitTiles || falling || stealth)
|
||||
@@ -453,6 +459,9 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
for (int y = 0; y < 2; y++)
|
||||
Main.EntitySpriteDraw(glowBlade.Value, fxPos - Main.screenPosition, null, (y != 0 ? Color.White : mainColor) with { A = 0 } * (0.3f * glowUp), fxVel.ToRotation() + MathHelper.PiOver2, glowBlade.Size() / 2f, new Vector2(0.4f * (y != 0 ? 0.65f : 1f), 1f * throwCompletion * glowUp * (i == 0 ? 1.5f : 1)) * Projectile.scale * 0.04f, SpriteEffects.None, 0);
|
||||
float softGlowUp = (float)Math.Pow(glowUp, 0.15f);
|
||||
for (int y = 0; y < 3; y++)
|
||||
Main.EntitySpriteDraw(glowBottom.Value, fxPos - Main.screenPosition - fxVel * 0.55f, null, (y != 0 ? Color.White : mainColor) with { A = 0 } * (0.1f * glowUp), fxVel.ToRotation() + MathHelper.PiOver2, glowBottom.Size() / 2f, new Vector2(1f * (y != 0 ? 0.65f : 1f) * softGlowUp, 1.7f * throwCompletion * softGlowUp * (i == 0 ? 1.5f : 1)) * Projectile.scale * (y == 2 ? 0.3f : 0.25f), SpriteEffects.None, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user