Relic of Deliverance rotation syncing

This commit is contained in:
Nathanael Overton committed 2026-01-10 01:41:36 -05:00
1 parent 38ac7f22ce
commit a487a32cdb
1 file changed
+13 -2
@@ -437,12 +437,23 @@ namespace CalamityMod.Projectiles.Typeless
Owner.Center = respawnPoint;
}
killed = true;
Owner.fullRotationOrigin = Owner.Center - Owner.position;
Owner.fullRotation = 0;
Owner.Calamity().rOfDelivarenceRam = false;
Projectile.netUpdate = true;
Projectile.Kill();
}
public override void OnKill(int timeLeft)
{
if (Projectile.owner == Main.myPlayer && SoundEngine.TryGetActiveSound(digSoundSlot, out var sound))
sound.Stop();
Owner.fullRotationOrigin = Owner.Center - Owner.position;
Owner.fullRotation = 0f;
if (Main.netMode != NetmodeID.SinglePlayer)
NetMessage.SendData(MessageID.SyncPlayer, number: Owner.whoAmI);
}
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
bool crit = Main.rand.Next(0, 100 + 1) < Owner.GetTotalCritChance(Owner.GetBestClass());