v1.5.7.0 (Summer Update)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user