Moved inventory UI update logic to the client project, sound effects for picking up and dropping items

This commit is contained in:
Joonas Rikkonen
2017-08-10 20:30:29 +03:00
parent fd844fd696
commit f40d244deb
11 changed files with 352 additions and 339 deletions
@@ -86,10 +86,18 @@ namespace Barotrauma.Items.Components
DropConnectedWires(picker);
ApplyStatusEffects(ActionType.OnPicked, 1.0f, picker);
#if CLIENT
GUI.PlayUISound(GUISoundType.PickItem);
#endif
return true;
}
#if CLIENT
GUI.PlayUISound(GUISoundType.PickItemFail);
#endif
return false;
}