(a135020e9) Fixed item assembly names and descriptions not being fetched from the text xml

This commit is contained in:
Joonas Rikkonen
2019-04-04 11:09:03 +03:00
parent a3425a0432
commit dce643e116
6 changed files with 16 additions and 148 deletions
@@ -290,11 +290,6 @@ namespace Barotrauma.Items.Components
itemList.UpdateScrollBarSize();
itemList.BarScroll = 0.0f;
float requiredTime = user == null ? selectedItem.RequiredTime : GetRequiredTime(selectedItem, user);
string requiredTimeText = TextManager.Get("FabricatorRequiredTime") + ": " + ToolBox.SecondsToReadableTime(requiredTime);
new GUITextBlock(new RectTransform(new Vector2(1.0f, 0.0f), paddedFrame.RectTransform),
requiredTimeText, textColor: ToolBox.GradientLerp(degreeOfSuccess, Color.Red, Color.Yellow, Color.LightGreen), font: GUI.SmallFont);
return true;
}
@@ -393,9 +388,6 @@ namespace Barotrauma.Items.Components
itemList.UpdateScrollBarSize();
itemList.BarScroll = 0.0f;
float degreeOfSuccess = user == null ? 0.0f : DegreeOfSuccess(user, selectedItem.RequiredSkills);
if (degreeOfSuccess > 0.5f) { degreeOfSuccess = 1.0f; }
return true;
}