(db42ef494) Don't allow combat priority go over 100.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:09:51 +03:00
parent 171c42f077
commit 7ebb0be29b
12 changed files with 91 additions and 16 deletions
@@ -393,6 +393,19 @@ namespace Barotrauma.Items.Components
return true;
}
public override void OnItemLoaded()
{
sonar = item.GetComponent<Sonar>();
}
public override bool Select(Character character)
{
if (!CanBeSelected) return false;
user = character;
return true;
}
public override void Update(float deltaTime, Camera cam)
{
networkUpdateTimer -= deltaTime;