(91366496d) Removed connection displayname attributes from ItemAssemblies (ended up there with liberal use of Find & Replace, but it's better to use values from the item prefab)

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:48:06 +03:00
parent 90e1786f92
commit 1973a824bf
4 changed files with 25 additions and 14 deletions
@@ -553,8 +553,6 @@ namespace Barotrauma
public static bool HasItem(Character character, string tag, string containedTag, float conditionPercentage = 0)
{
if (character == null) { return false; }
if (character.Inventory == null) { return false; }
var item = character.Inventory.FindItemByTag(tag);
return item != null &&
item.ConditionPercentage > conditionPercentage &&