Use typed hardpoints for cargo tint
This commit is contained in:
parent
c21d166e39
commit
ecc35c3ea6
3 changed files with 4 additions and 5 deletions
|
|
@ -851,8 +851,6 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler
|
|||
var c = float3(1);
|
||||
if (TryGetTypedHardpointType(item, out var typedHardpoint))
|
||||
c = HardpointData.GetColor(typedHardpoint);
|
||||
else if (GameManager.ItemManager.GetData(item) is EquippableItemData equippable)
|
||||
c = HardpointData.GetColor(equippable.HardpointType);
|
||||
|
||||
if(!highlight)
|
||||
c *= .7071f;
|
||||
|
|
|
|||
Loading…
Reference in a new issue