Server checks on some equipTexture stuff
This commit is contained in:
1 parent
91a9a08c29
commit
ec69fb08b5
6 files changed
+13
-1
No files matched your search
@@ -48,6 +48,9 @@ namespace CalamityMod.Items.Accessories
|
||||
"This tooltip gets modified");
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4));
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
|
||||
int equipSlotLegs = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs);
|
||||
ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,8 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
Tooltip.SetDefault("Don't let the demons steal your nose\n" +
|
||||
"Transforms the holder into a snowman");
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
int equipSlotLegs = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs);
|
||||
ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,8 @@ namespace CalamityMod.Items.Armor
|
||||
"5% increased magic damage and critical strike chance\n" +
|
||||
"You feel thick...");
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
ArmorIDs.Body.Sets.HidesHands[equipSlot] = true;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,8 @@ namespace CalamityMod.Items.Armor
|
||||
Tooltip.SetDefault(@"You can move freely through liquids
|
||||
12% increased damage and 8% increased critical strike chance");
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, "OmegaBlueTransformation", EquipType.Head);
|
||||
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
|
||||
DisplayName.SetDefault("Apollo Mask");
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,9 @@ namespace CalamityMod.Items.Armor
|
||||
"11% increased rogue damage and critical strike chance, 5% increased movement speed\n" +
|
||||
"Temporary immunity to lava");
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, "MeldTransformation", EquipType.Head);
|
||||
int equipSlotBody = EquipLoader.GetEquipSlot(Mod, "MeldTransformation", EquipType.Body);
|
||||
int equipSlotLegs = EquipLoader.GetEquipSlot(Mod, "MeldTransformation", EquipType.Legs);
|
||||
|
||||
Reference in new issue
Block a user