1 - Removed some comments and other tiny things that aren't necessary.

This commit is contained in:
Andrew Marheine committed 2021-10-18 18:07:42 -05:00
1 parent dc3a64ece4
commit 19062d55e9
4 files changed
+13 -16

No files matched your search

-1
View File
@@ -62,7 +62,6 @@ using CalamityMod.Projectiles.Enemy;
using CalamityMod.Projectiles.Hybrid;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Projectiles.Melee;
using CalamityMod.Projectiles.Melee.Spears;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Projectiles.Summon;
+6 -6
View File
@@ -280,11 +280,11 @@ namespace CalamityMod
Main.player[reader.ReadInt32()].Calamity().HandleReforgeTierSafety(reader);
break;
//
// Default case: with no idea how long the packet is, we can't safely read data.
// Throw an exception now instead of allowing the network stream to corrupt.
//
default:
//
// Default case: with no idea how long the packet is, we can't safely read data.
// Throw an exception now instead of allowing the network stream to corrupt.
//
default:
CalamityMod.Instance.Logger.Error($"Failed to parse Calamity packet: No Calamity packet exists with ID {msgType}.");
throw new Exception("Failed to parse Calamity packet: Invalid Calamity packet ID.");
}
@@ -399,6 +399,6 @@ namespace CalamityMod
// Reforge syncs
ItemTypeLastReforgedSync, // TODO -- there has to be a better way to do this, but I don't know what it is
ReforgeTierSafetySync,
ReforgeTierSafetySync
}
}
-2
View File
@@ -43,8 +43,6 @@ namespace CalamityMod.NPCs
return false;
}
// TODO -- why do we have random enemies dying in the abyss regardless of whether they're underwater
// this just causes multiplayer desyncs if anything
if (AbyssLootCancel(npc, mod))
return false;
+7 -7
View File
@@ -75,10 +75,10 @@ namespace CalamityMod.World
public static bool death = false; // Death Mode
public static bool armageddon = false; // Armageddon Mode
public static bool ironHeart = false; // Iron Heart Mode
public static bool malice = false; // Malice Mode, enrages all bosses and makes them drop good shit
public static bool malice = false; // Malice Mode
// New Temple Altar
public static int newAltarX = 0;
// New Temple Altar
public static int newAltarX = 0;
public static int newAltarY = 0;
// Evil Islands
@@ -542,12 +542,12 @@ namespace CalamityMod.World
["Reforges"] = Reforges,
["MoneyStolenByBandit"] = MoneyStolenByBandit,
["SunkenSeaLabCenter"] = SunkenSeaLabCenter,
["SunkenSeaLabCenter"] = SunkenSeaLabCenter,
["PlanetoidLabCenter"] = PlanetoidLabCenter,
["JungleLabCenter"] = JungleLabCenter,
["HellLabCenter"] = HellLabCenter,
["IceLabCenter"] = IceLabCenter,
};
["IceLabCenter"] = IceLabCenter
};
}
#endregion
@@ -649,7 +649,7 @@ namespace CalamityMod.World
Reforges = tag.GetInt("Reforges");
MoneyStolenByBandit = tag.GetInt("MoneyStolenByBandit");
SunkenSeaLabCenter = tag.Get<Vector2>("SunkenSeaLabCenter");
SunkenSeaLabCenter = tag.Get<Vector2>("SunkenSeaLabCenter");
PlanetoidLabCenter = tag.Get<Vector2>("PlanetoidLabCenter");
JungleLabCenter = tag.Get<Vector2>("JungleLabCenter");
HellLabCenter = tag.Get<Vector2>("HellLabCenter");