(829458a66) Don't apply priority modifier on the priority value, because it's already applied to the max value. The priority value should be normalized, because we are using the lerp.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:12:07 +03:00
parent dbccd76613
commit 019712ef66
12 changed files with 90 additions and 16 deletions
@@ -497,6 +497,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;