v0.19.10.0 (Hoist the Sails update)

This commit is contained in:
Regalis11
2022-10-05 18:07:55 +03:00
parent d461d504dc
commit 91f2f6f4f7
8 changed files with 16 additions and 7 deletions
@@ -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();