Base ItemComponents can apply OnUse statuseffects, grenades can be placed in detonators. Closes #113

This commit is contained in:
Joonas Rikkonen
2018-01-09 14:55:16 +02:00
parent c2e3f60641
commit 18ae9d7820
4 changed files with 26 additions and 11 deletions
@@ -305,7 +305,7 @@ namespace Barotrauma.Items.Components
//returns true if the item was used succesfully (not out of ammo, reloading, etc)
public virtual bool Use(float deltaTime, Character character = null)
{
return false;
return characterUsable || character == null;
}
//called when the item is equipped and right mouse button is pressed