v1.5.7.0 (Summer Update)

This commit is contained in:
Regalis11
2024-06-18 16:49:51 +03:00
parent 4a63dacbce
commit 230d1b6e78
263 changed files with 7792 additions and 2845 deletions
@@ -134,6 +134,12 @@ namespace Barotrauma
/// </summary>
public bool SetActive;
/// <summary>
/// Only valid when used in the Containable definitions of an ItemContainer.
/// Should the character who equipped the item be blamed if the wearer / character who's inventory the item is in dies?
/// </summary>
public bool BlameEquipperForDeath;
/// <summary>
/// Only valid for the RequiredItems of an ItemComponent. Can be used to make the requirement optional,
/// meaning that you don't need to have the item to interact with something, but having it may still affect what the interaction does (such as using a crowbar on a door).
@@ -272,6 +278,7 @@ namespace Barotrauma
AllowVariants = element.GetAttributeBool("allowvariants", true);
Rotation = element.GetAttributeFloat("rotation", 0f);
SetActive = element.GetAttributeBool("setactive", false);
BlameEquipperForDeath = element.GetAttributeBool(nameof(BlameEquipperForDeath), false);
CharacterInventorySlotType = element.GetAttributeEnum(nameof(CharacterInventorySlotType), InvSlotType.None);