realised half way through that I don't even need a new action type, oops

This commit is contained in:
Alex Noir
2017-12-10 13:45:12 +03:00
parent 00653c5aa4
commit 1d6d1a066f
4 changed files with 4 additions and 50 deletions
@@ -36,7 +36,6 @@ namespace Barotrauma
{
if (Items[slotIndex] == null) return false;
//Isn't this useless? Client isn't handling status effects. Plus, this doesn't send the ActionType so it can be wrong even.
#if CLIENT
if (GameMain.Client != null)
{
@@ -47,10 +46,10 @@ namespace Barotrauma
if (GameMain.Server != null)
{
GameMain.Server.CreateEntityEvent(Items[slotIndex], new object[] { NetEntityEvent.Type.ApplyStatusEffect, ActionType.OnHudUse, character.ID });
GameMain.Server.CreateEntityEvent(Items[slotIndex], new object[] { NetEntityEvent.Type.ApplyStatusEffect, ActionType.OnUse, character.ID });
}
Items[slotIndex].ApplyStatusEffects(ActionType.OnHudUse, 1.0f, character);
Items[slotIndex].ApplyStatusEffects(ActionType.OnUse, 1.0f, character);
return true;
}