What is going on with the Exo Mechdusa syncs? I think I fixed a thing.

This commit is contained in:
mountaindrew10 committed 2023-03-23 02:37:27 -05:00
1 parent 4bde9b1fb8
commit 424d99c863
2 files changed
+11 -1

No files matched your search

+9
View File
@@ -210,6 +210,15 @@ namespace CalamityMod.NPCs.ExoMechs
{
exoMechdusa = true;
CalamityWorld.DraedonMechdusa = false;
if (Main.netMode != NetmodeID.SinglePlayer)
{
var netMessage = CalamityMod.Instance.GetPacket();
netMessage.Write((byte)CalamityModMessageType.CodebreakerSummonStuff);
netMessage.Write(CalamityWorld.DraedonSummonCountdown);
netMessage.WriteVector2(CalamityWorld.DraedonSummonPosition);
netMessage.Write(CalamityWorld.DraedonMechdusa);
netMessage.Send();
}
}
// Handle delays when re-appearing after being killed.
+2 -1
View File
@@ -130,6 +130,7 @@ namespace CalamityMod.Systems
flags12[1] = downedMauler;
flags12[2] = downedNuclearTerror;
flags12[3] = downedBossRush;
flags12[4] = DraedonMechdusa;
writer.Write(flags);
writer.Write(flags2);
@@ -283,6 +284,7 @@ namespace CalamityMod.Systems
downedMauler = flags12[1];
downedNuclearTerror = flags12[2];
downedBossRush = flags12[3];
DraedonMechdusa = flags12[4];
RecipeUnlockHandler.ReceiveData(reader);
@@ -293,7 +295,6 @@ namespace CalamityMod.Systems
Reforges = reader.ReadInt32();
MoneyStolenByBandit = reader.ReadInt32();
DraedonSummonCountdown = reader.ReadInt32();
DraedonMechdusa = reader.ReadBoolean();
DraedonMechToSummon = (ExoMech)reader.ReadInt32();
DraedonSummonPosition = reader.ReadVector2();
SunkenSeaLabCenter = reader.ReadVector2();