v0.19.10.0 (Hoist the Sails update)
This commit is contained in:
@@ -3198,7 +3198,6 @@ namespace Barotrauma
|
||||
}
|
||||
#endif
|
||||
|
||||
item.condition = element.GetAttributeFloat("condition", item.condition);
|
||||
foreach (XAttribute attribute in (appliedSwap?.ConfigElement ?? element).Attributes())
|
||||
{
|
||||
if (!item.SerializableProperties.TryGetValue(attribute.NameAsIdentifier(), out SerializableProperty property)) { continue; }
|
||||
@@ -3350,6 +3349,7 @@ namespace Barotrauma
|
||||
item.PurchasedNewSwap = false;
|
||||
}
|
||||
|
||||
item.condition = element.GetAttributeFloat("condition", item.condition);
|
||||
item.condition = MathHelper.Clamp(item.condition, 0, item.MaxCondition);
|
||||
item.lastSentCondition = item.condition;
|
||||
item.RecalculateConditionValues();
|
||||
|
||||
Reference in New Issue
Block a user