Replaced every instance of Main.netMode == NetmodeID.Server with Main.dedServ
And every Main.netMode != NetmodeID.Server with !Main.dedServ
This commit is contained in:
1 parent
96d51a842b
commit
dc90e31dc0
499 files changed
+692
-692
No files matched your search
@@ -2695,7 +2695,7 @@ namespace CalamityMod.CalPlayer
|
||||
foreach (string cdID in removedCooldowns)
|
||||
cooldowns.Remove(cdID);
|
||||
|
||||
SyncCooldownDictionary(Main.netMode == NetmodeID.Server);
|
||||
SyncCooldownDictionary(Main.dedServ);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3732,7 +3732,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.StopVanityActions(false);
|
||||
player.RemoveAllGrapplingHooks();
|
||||
player.Teleport(pos, style);
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
RemoteClient.CheckSection(player.whoAmI, player.Center);
|
||||
NetMessage.SendData(MessageID.TeleportEntity, -1, -1, null, 0, (float)player.whoAmI, pos.X, pos.Y, style, 0, 0);
|
||||
player.velocity = Vector2.Zero;
|
||||
@@ -4366,7 +4366,7 @@ namespace CalamityMod.CalPlayer
|
||||
confetti.velocity.Y += Main.rand.Next(-50, 51) * 0.05f;
|
||||
confetti.scale *= (float)(1.0 + Main.rand.Next(-30, 31) * 0.01);
|
||||
}
|
||||
if (Main.rand.NextBool(40) && Main.netMode != NetmodeID.Server)
|
||||
if (Main.rand.NextBool(40) && !Main.dedServ)
|
||||
{
|
||||
int confettiGore = Main.rand.Next(276, 283);
|
||||
int confetti = Gore.NewGore(Player.GetSource_ItemUse(item), new Vector2(hitbox.X, hitbox.Y), Player.velocity, confettiGore, 1f);
|
||||
|
||||
@@ -372,7 +372,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// Some extraneous and probably undocumented visual effect caused by the heart lad pet thing
|
||||
if ((calamityPlayer.ladHearts > 0) && !Player.loveStruck && Main.netMode != NetmodeID.Server && drawInfo.shadow == 0f)
|
||||
if ((calamityPlayer.ladHearts > 0) && !Player.loveStruck && !Main.dedServ && drawInfo.shadow == 0f)
|
||||
{
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
|
||||
@@ -2536,7 +2536,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.wingsLogic == (int)VanillaWingID.BoneWings)
|
||||
{
|
||||
// Drop some bones for visual effects
|
||||
if (Main.netMode != NetmodeID.Server && Player.wingTime > 0)
|
||||
if (!Main.dedServ && Player.wingTime > 0)
|
||||
{
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ItemID.BoneWings));
|
||||
for (int i = 0; i < 6; i++)
|
||||
@@ -2872,7 +2872,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
NetMessage.SendPlayerDeath(Player.whoAmI, damageSource, (int)1000.0, 0, false, -1, -1);
|
||||
}
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
ChatHelper.BroadcastChatMessage(deathText, new Color(225, 25, 25));
|
||||
}
|
||||
|
||||
@@ -883,7 +883,7 @@ namespace CalamityMod.CalPlayer
|
||||
private void MiscEffects()
|
||||
{
|
||||
// Update textures
|
||||
if (Main.netMode != NetmodeID.Server && Player.whoAmI == Main.myPlayer)
|
||||
if (!Main.dedServ && Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Asset<Texture2D> carpetAuric = ExtraTextureRefs.FlyingCarpetAuric;
|
||||
Asset<Texture2D> carpetOriginal = ExtraTextureRefs.FlyingCarpetVanilla;
|
||||
@@ -1609,7 +1609,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// If any cooldowns were removed, send a cooldown removal packet that lists all cooldowns to remove.
|
||||
if (expiredCooldowns.Count > 0)
|
||||
SyncCooldownRemoval(Main.netMode == NetmodeID.Server, expiredCooldowns);
|
||||
SyncCooldownRemoval(Main.dedServ, expiredCooldowns);
|
||||
|
||||
// Grant the player 5 seconds of immunity to immobilizing debuffs after an immobilizing debuff wears off.
|
||||
if (Player.stoned || Player.frozen || Player.webbed || gState)
|
||||
@@ -2391,7 +2391,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Biome Effects
|
||||
public void DrawPollenInFloralParadise()
|
||||
{
|
||||
if (!ZoneFloralParadise || !Main.rand.NextBool(7) || Main.netMode == NetmodeID.Server)
|
||||
if (!ZoneFloralParadise || !Main.rand.NextBool(7) || Main.dedServ)
|
||||
return;
|
||||
|
||||
for (int i = 0; i < 15; i++)
|
||||
@@ -2761,7 +2761,7 @@ namespace CalamityMod.CalPlayer
|
||||
auralisStealthCounter++;
|
||||
|
||||
bool usingScope = false;
|
||||
if (!Main.gameMenu && Main.netMode != NetmodeID.Server)
|
||||
if (!Main.gameMenu && !Main.dedServ)
|
||||
{
|
||||
if (Player.noThrow <= 0 && !Player.lastMouseInterface || !(Main.CurrentPan == Vector2.Zero))
|
||||
{
|
||||
@@ -4464,7 +4464,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Text Chat Messages
|
||||
private void HandleTextChatMessages()
|
||||
{
|
||||
if (Player.whoAmI != Main.myPlayer || Main.netMode == NetmodeID.Server)
|
||||
if (Player.whoAmI != Main.myPlayer || Main.dedServ)
|
||||
return;
|
||||
|
||||
if (startMessageDisplayDelay >= 0)
|
||||
@@ -4631,7 +4631,7 @@ namespace CalamityMod.CalPlayer
|
||||
SyncAndroombaAIPacket.Send(npc.ModNPC<AndroombaFriendly>(), phase: 1);
|
||||
}
|
||||
}
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -136,7 +136,7 @@ namespace CalamityMod
|
||||
|
||||
public static void SyncWorld()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
NetMessage.SendData(MessageID.WorldData);
|
||||
}
|
||||
|
||||
|
||||
@@ -337,7 +337,7 @@ namespace CalamityMod.Events
|
||||
|
||||
// Flow: 2024/09/06
|
||||
// Salute for the one who wrote 3 if conditional block after experiencing immeasurable torment with packet generations
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
AcidRainSyncPacket.Send();
|
||||
AcidRainOldDukeSummonSyncPacket.Send();
|
||||
|
||||
@@ -541,7 +541,7 @@ namespace CalamityMod.Events
|
||||
if (HostileProjectileKillCounter == 1)
|
||||
CalamityUtils.KillAllHostileProjectiles();
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
BRHostileProjKillSyncPacket.Send();
|
||||
}
|
||||
@@ -557,7 +557,7 @@ namespace CalamityMod.Events
|
||||
if (BossRushStage != 0)
|
||||
{
|
||||
BossRushStage = 0;
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
BossRushStagePacket.Send();
|
||||
}
|
||||
@@ -656,7 +656,7 @@ namespace CalamityMod.Events
|
||||
CalamityUtils.KillAllHostileProjectiles();
|
||||
|
||||
CalamityNetcode.SyncWorld();
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
BossRushStagePacket.Send();
|
||||
BossRushStartTimerPacket.Send();
|
||||
@@ -745,7 +745,7 @@ namespace CalamityMod.Events
|
||||
}
|
||||
|
||||
// Sync the stage and progress of Boss Rush whenever a relevant boss dies.
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
BossRushStagePacket.Send();
|
||||
BRHostileProjKillSyncPacket.Send();
|
||||
@@ -776,7 +776,7 @@ namespace CalamityMod.Events
|
||||
public static void SyncStartTimer(int time)
|
||||
{
|
||||
StartTimer = time;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
return;
|
||||
|
||||
BossRushStartTimerPacket.Send();
|
||||
@@ -785,7 +785,7 @@ namespace CalamityMod.Events
|
||||
public static void SyncEndTimer(int time)
|
||||
{
|
||||
EndTimer = time;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
return;
|
||||
|
||||
BossRushEndTimerPacket.Send();
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.FluidSimulation
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server && basicShader is null)
|
||||
if (!Main.dedServ && basicShader is null)
|
||||
{
|
||||
basicShader = new BasicEffect(Main.instance.GraphicsDevice)
|
||||
{
|
||||
@@ -231,7 +231,7 @@ namespace CalamityMod.FluidSimulation
|
||||
{
|
||||
// Everything here involves heavy manipulation of render targets to work. Doing any of that on the server
|
||||
// would certainly result in a crash due to a lack of a graphics device.
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
if (!ShouldUpdate)
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.FluidSimulation
|
||||
|
||||
public FluidFieldState(int size, SurfaceFormat fieldContents = SurfaceFormat.Color)
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
Size = size;
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Graphics.Metaballs
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Load the layer asset wrapper.
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Graphics.Metaballs
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Load layer assets.
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace CalamityMod.Graphics.Metaballs
|
||||
MetaballManager.metaballs.Add(this);
|
||||
|
||||
// Disallow render target creation on servers.
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Generate render targets.
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Graphics.Metaballs
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Load the layer asset wrapper.
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Graphics.Renderers
|
||||
#region Loading
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
Main.QueueMainThreadAction(() =>
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Graphics.Renderers
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Clear the cached renderers, so they can be readded on mod loading when initialized.
|
||||
|
||||
@@ -657,7 +657,7 @@ namespace CalamityMod.ILEditing
|
||||
modPlayer.chaliceBleedoutBuffer -= amountOfBleedToClear;
|
||||
|
||||
// Display text indicating that healing was applied to the bleedout buffer.
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
string text = $"(+{amountOfBleedToClear})";
|
||||
Rectangle location = new Rectangle((int)player.position.X + 4, (int)player.position.Y - 3, player.width - 4, player.height - 4);
|
||||
@@ -852,7 +852,7 @@ namespace CalamityMod.ILEditing
|
||||
|
||||
cursor.EmitDelegate<Action>(() =>
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server && BiomeTileCounterSystem.FloralParadiseTiles > 0)
|
||||
if (!Main.dedServ && BiomeTileCounterSystem.FloralParadiseTiles > 0)
|
||||
DrawFog(Utils.GetLerpValue(0f, 250f, BiomeTileCounterSystem.FloralParadiseTiles, true));
|
||||
});
|
||||
|
||||
@@ -1859,7 +1859,7 @@ namespace CalamityMod.ILEditing
|
||||
Main.npc[retinazerIndex].target = targetPlayerIndex;
|
||||
Main.npc[retinazerIndex].timeLeft *= 20;
|
||||
|
||||
if (Main.netMode == NetmodeID.Server && retinazerIndex < 200)
|
||||
if (Main.dedServ && retinazerIndex < 200)
|
||||
{
|
||||
NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, retinazerIndex);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
|
||||
ArmorIDs.Face.Sets.PreventHairDraw[equipSlot] = true;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void Load()
|
||||
{
|
||||
// All code below runs only if we're not loading on a server
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Add equip textures
|
||||
EquipLoader.AddEquipTexture(Mod, $"{Texture}_{EquipType.Head}", EquipType.Head, this);
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void Load()
|
||||
{
|
||||
// All code below runs only if we're not loading on a server
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Add equip textures
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/AquaticTrans_Head", EquipType.Head, this);
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
|
||||
ArmorIDs.Face.Sets.OverrideHelmet[equipSlot] = true;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
|
||||
ArmorIDs.Face.Sets.OverrideHelmet[equipSlot] = true;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
|
||||
ArmorIDs.Face.Sets.PreventHairDraw[equipSlot] = true;
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace CalamityMod.Items.Accessories
|
||||
*/
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/ProfanedSoulTransHead", EquipType.Head, this);
|
||||
@@ -174,7 +174,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4));
|
||||
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/AbandonedWulfrumHelmet_HeadSet", EquipType.Head, name: "WulfrumOldSetHead");
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/AbandonedWulfrumHelmet_Body", EquipType.Body, this);
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, "WulfrumOldSetHead", EquipType.Head);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Fabsol_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Fabsol_Body", EquipType.Body, this);
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Dandy_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Dandy_Body", EquipType.Body, this);
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Heart_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Heart_Body", EquipType.Body, this);
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Mishiro_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Mishiro_Body", EquipType.Body, this);
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Popo_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/PopoNoseless_Head", EquipType.Head, name: "PopoNoseless");
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Shayy_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Shayy_Body", EquipType.Body, this);
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
int damage = npc.SimpleStrikeNPC((int)(npc.lifeMax / 200), player.direction, true);
|
||||
SoundEngine.PlaySound(Projectiles.Summon.CnidarianJellyfishOnTheString.SlapSound with { Volume = 2, MaxInstances = 200 }, npc.Center);
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
BloodShed(itemRect, npc, damage, player);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Auric
|
||||
public override void Load()
|
||||
{
|
||||
// All code below runs only if we're not loading on a server
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Add equip textures
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Auric/AuricTeslaBodyArmor_Back", EquipType.Back, this);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Brimflame
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/CirrusDress_Legs", EquipType.Legs, this);
|
||||
}
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
ArmorIDs.Body.Sets.HidesHands[equipSlot] = true;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Daedalus/DaedalusBreastplate_Waist", EquipType.Waist, this);
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Empyrean
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Empyrean/EmpyreanCloak_Neck", EquipType.Neck, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Empyrean/EmpyreanCloak_Back", EquipType.Back, this);
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor.Empyrean
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Empyrean
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Empyrean/MeldTransformation_Head", EquipType.Head, name: "MeldTransformation");
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Empyrean/MeldTransformation_Body", EquipType.Body, name: "MeldTransformation");
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor.Empyrean
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
var equipSlotHead = EquipLoader.GetEquipSlot(Mod, "MeldTransformation", EquipType.Head);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.FathomSwarmer
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
@@ -138,14 +138,14 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/MarniteArchitect/MarniteArchitectToga_Legs", EquipType.Legs, this);
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
MountData.playerHeadOffset = 4;
|
||||
|
||||
//Sprites
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.frontTextureGlow = Request<Texture2D>("CalamityMod/Items/Armor/MarniteArchitect/MarniteLiftFire");
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/OmegaBlue/OmegaBlueHelmet_HeadMadness", EquipType.Head, name: "OmegaBlueTransformation");
|
||||
}
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
var equipSlotHead = EquipLoader.GetEquipSlot(Mod, "OmegaBlueTransformation", EquipType.Head);
|
||||
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Prismatic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/SnowRuffian/SnowRuffianChestplate_Back", EquipType.Back, this);
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/SnowRuffian/SnowRuffianWings", EquipType.Wings, this, equipTexture: new SnowRuffianWings());
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.TitanHeart
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public new string LocalizationCategory => "Items.Armor.Vanity";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public new string LocalizationCategory => "Items.Armor.Vanity";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Vanity/OldHunterShirt_Back", EquipType.Back, this);
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public new string LocalizationCategory => "Items.Armor.Vanity";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Vanity/RobesOfCalamity_Legs", EquipType.Legs, this);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public new string LocalizationCategory => "Items.Armor.Vanity";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Vanity/TheGrandGarment_Waist", EquipType.Waist, this);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
//register the faulds texture. This appears either when the leggings or the chestplate is equipped (both works)
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Victide/VictideFaulds_Waist", EquipType.Waist, name: "VictideFaulds");
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs);
|
||||
ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlot] = true;
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Wulfrum/WulfrumHat_FemaleHead", EquipType.Head, name: "WulfrumHatFemale");
|
||||
}
|
||||
@@ -274,7 +274,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
||||
@@ -318,7 +318,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 1;
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs);
|
||||
ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlot] = true;
|
||||
@@ -361,7 +361,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
|
||||
public override void Kill(double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource)
|
||||
{
|
||||
if (WulfrumHat.PowerModeEngaged(Player, out var cd) && Main.netMode != NetmodeID.Server)
|
||||
if (WulfrumHat.PowerModeEngaged(Player, out var cd) && !Main.dedServ)
|
||||
{
|
||||
SetBonusEndEffect(true);
|
||||
if (!Player.GetModPlayer<WulfrumTransformationPlayer>().vanityEquipped)
|
||||
@@ -385,7 +385,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
if (cd.timeLeft < WulfrumHat.BastionCooldown)
|
||||
{
|
||||
cd.timeLeft = WulfrumHat.BastionCooldown - 1;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
SetBonusEndEffect(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.Items.Mounts
|
||||
MountData.swimFrameCount = MountData.inAirFrameCount;
|
||||
MountData.swimFrameDelay = MountData.inAirFrameDelay;
|
||||
MountData.swimFrameStart = MountData.inAirFrameStart;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.frontTextureExtra = ModContent.Request<Texture2D>("CalamityMod/Items/Mounts/AlicornMountExtra");
|
||||
MountData.textureWidth = MountData.backTexture.Width();
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Mounts
|
||||
MountData.dashingFrameCount = MountData.flyingFrameCount;
|
||||
MountData.dashingFrameDelay = 5;
|
||||
MountData.dashingFrameStart = MountData.flyingFrameStart;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.textureWidth = MountData.backTexture.Width();
|
||||
MountData.textureHeight = MountData.backTexture.Height();
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace CalamityMod.Items.Mounts
|
||||
MountData.swimFrameCount = MountData.inAirFrameCount;
|
||||
MountData.swimFrameDelay = MountData.runningFrameDelay;
|
||||
MountData.swimFrameStart = MountData.inAirFrameStart;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.frontTextureExtra = ModContent.Request<Texture2D>("CalamityMod/Items/Mounts/CrysthamyrExtra");
|
||||
MountData.textureWidth = MountData.backTexture.Width();
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.Items.Mounts
|
||||
MountData.swimFrameCount = 5;
|
||||
MountData.swimFrameDelay = 5;
|
||||
MountData.swimFrameStart = 0;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.frontTextureGlow = ModContent.Request<Texture2D>("CalamityMod/Items/Mounts/DraedonGamerChairMount_Glowmask");
|
||||
MountData.textureWidth = MountData.frontTexture.Width();
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace CalamityMod.Items.Mounts
|
||||
MountData.swimFrameCount = MountData.inAirFrameCount;
|
||||
MountData.swimFrameDelay = MountData.inAirFrameDelay;
|
||||
MountData.swimFrameStart = MountData.inAirFrameStart;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// back (back layer) -> backExtra (gun) -> front (launcher) -> frontExtra (front layer)
|
||||
MountData.backTextureExtra = ModContent.Request<Texture2D>("CalamityMod/Items/Mounts/ExoTank_BackGun");
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Mounts.Minecarts
|
||||
MountData.runSpeed = 22f;
|
||||
MountData.acceleration = 0.16f;
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.textureWidth = 74;
|
||||
MountData.textureHeight = 114;
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Mounts
|
||||
MountData.swimFrameCount = MountData.inAirFrameCount;
|
||||
MountData.swimFrameDelay = MountData.inAirFrameDelay;
|
||||
MountData.swimFrameStart = MountData.inAirFrameStart;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.backTextureExtra = ModContent.Request<Texture2D>("CalamityMod/Items/Mounts/OnyxExcavatorExtra");
|
||||
MountData.frontTextureExtra = ModContent.Request<Texture2D>("CalamityMod/Items/Mounts/OnyxExcavatorExtra2");
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Mounts
|
||||
MountData.swimFrameCount = 4;
|
||||
MountData.swimFrameDelay = 4;
|
||||
MountData.swimFrameStart = 0;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.textureWidth = MountData.backTexture.Width();
|
||||
MountData.textureHeight = MountData.backTexture.Height();
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Mounts
|
||||
MountData.swimFrameCount = MountData.inAirFrameCount;
|
||||
MountData.swimFrameDelay = MountData.inAirFrameDelay;
|
||||
MountData.swimFrameStart = MountData.inAirFrameStart;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.textureWidth = MountData.backTexture.Width();
|
||||
MountData.textureHeight = MountData.backTexture.Height();
|
||||
|
||||
Loaded 100 of 499 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user