From 748101487574db739734bc644a1e4c059effd760 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 3 Sep 2022 21:52:55 -0500 Subject: [PATCH] 1 - Made Thanatos small lasers slightly faster. 2 - Artemis and Thanatos' small lasers sync their extra updates. --- Projectiles/Boss/ArtemisLaser.cs | 2 ++ Projectiles/Boss/ThanatosLaser.cs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Projectiles/Boss/ArtemisLaser.cs b/Projectiles/Boss/ArtemisLaser.cs index 9dba0eab31..dbf7e75d06 100644 --- a/Projectiles/Boss/ArtemisLaser.cs +++ b/Projectiles/Boss/ArtemisLaser.cs @@ -53,6 +53,7 @@ namespace CalamityMod.Projectiles.Boss public override void SendExtraAI(BinaryWriter writer) { + writer.Write(Projectile.extraUpdates); writer.Write(TelegraphDelay); writer.WriteVector2(Destination); writer.WriteVector2(Velocity); @@ -60,6 +61,7 @@ namespace CalamityMod.Projectiles.Boss public override void ReceiveExtraAI(BinaryReader reader) { + Projectile.extraUpdates = reader.ReadInt32(); TelegraphDelay = reader.ReadSingle(); Destination = reader.ReadVector2(); Velocity = reader.ReadVector2(); diff --git a/Projectiles/Boss/ThanatosLaser.cs b/Projectiles/Boss/ThanatosLaser.cs index 148e7b9a47..41a1ad2f13 100644 --- a/Projectiles/Boss/ThanatosLaser.cs +++ b/Projectiles/Boss/ThanatosLaser.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Boss public const float TelegraphTotalTime = 60f; public const float TelegraphFadeTime = 30f; public const float TelegraphWidth = 4200f; - public const float LaserVelocity = 7f; + public const float LaserVelocity = 7.5f; public override void SetStaticDefaults() { @@ -53,12 +53,14 @@ namespace CalamityMod.Projectiles.Boss public override void SendExtraAI(BinaryWriter writer) { + writer.Write(Projectile.extraUpdates); writer.WriteVector2(Destination); writer.WriteVector2(Velocity); } public override void ReceiveExtraAI(BinaryReader reader) { + Projectile.extraUpdates = reader.ReadInt32(); Destination = reader.ReadVector2(); Velocity = reader.ReadVector2(); }