Wearables apply OnWearing StatusEffects in all the components of an item, not just the Wearable component.
This commit is contained in:
@@ -163,7 +163,7 @@ namespace Barotrauma.Items.Components
|
||||
item.SetTransform(picker.SimPosition, 0.0f);
|
||||
item.SetContainedItemPositions();
|
||||
|
||||
ApplyStatusEffects(ActionType.OnWearing, deltaTime, picker);
|
||||
item.ApplyStatusEffects(ActionType.OnWearing, deltaTime, picker);
|
||||
|
||||
#if CLIENT
|
||||
PlaySound(ActionType.OnWearing, picker.WorldPosition);
|
||||
|
||||
Reference in New Issue
Block a user