OBT/1.2.1(Summer update)
Sync with upstream
This commit is contained in:
@@ -345,6 +345,8 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
if (targetItem.AllowDeconstruct && allowRemove)
|
||||
{
|
||||
ApplyDeconstructionStatusEffects(targetItem, ActionType.OnDeconstructed, 1f);
|
||||
|
||||
//drop all items that are inside the deconstructed item
|
||||
foreach (ItemContainer ic in targetItem.GetComponents<ItemContainer>())
|
||||
{
|
||||
@@ -480,6 +482,7 @@ namespace Barotrauma.Items.Components
|
||||
// Move items again since the status effect could have spawned additional items in the character inventory
|
||||
MoveItemsFromCharacterToOutput();
|
||||
|
||||
character.Kill(CauseOfDeathType.Unknown, causeOfDeathAffliction: null);
|
||||
Entity.Spawner?.AddEntityToRemoveQueue(character);
|
||||
}, 0.1f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user