(0976ef4d1) Fix repair hint text being displayed even when the item condition is not below the threshold. Move the GetHUDText method from shared to client project.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:29:50 +03:00
parent 32fe6e24de
commit ca3b5ae04b
9 changed files with 372 additions and 105 deletions
@@ -229,8 +229,7 @@ namespace Barotrauma.Items.Components
{
msg = msg ?? (HasIntegratedButtons ? accessDeniedTxt : cannotOpenText);
}
if (isBroken) { return true; }
return base.HasRequiredItems(character, addMessage, msg);
return isBroken || base.HasRequiredItems(character, addMessage, msg);
}
public override bool Pick(Character picker)