Elpato удалил body armor которые были. Вдруг кому-то будет нужно. Inventory.cs - ищем case:bodyarmor
и заменяем на это:
и заменяем на это:
C#:
case ItemType.BodyArmor:
{
if (item.IsActive)
{
item.Data = player.Armor.ToString();
player.Armor = 0;
player.ResetSharedData("HASARMOR");
Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Variation = 0;
Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Texture = 0;
player.SetClothes(9, Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Variation, Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Texture);
nInventory.Items[UUID][index].IsActive = false;
GUI.Dashboard.Update(player, item, index);
}
else
{
var armor = Convert.ToInt32((string)item.Data);
player.Armor = armor;
player.SetSharedData("HASARMOR", true);
switch (Fractions.Manager.FractionTypes[Main.Players[player].FractionID])
{
case -1:
case 1:
Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Texture = 2;
break;
case 0:
Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Texture = 0;
break;
case 2:
Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Texture = 1;
break;
default:
Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Texture = 1;
break;
}
Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Variation = 12;
player.SetClothes(9, Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Variation, Customization.CustomPlayerData[Main.Players[player].UUID].Clothes.Bodyarmor.Texture);
nInventory.UnActiveItem(player, item.Type);
nInventory.Items[UUID][index].IsActive = true;
GUI.Dashboard.Update(player, item, index);
}
return;
}
Последнее редактирование: