v1.6.17.0 (Unto the Breach update)

This commit is contained in:
Regalis11
2024-10-22 17:29:04 +03:00
parent e74b3cdb17
commit 6e6c17e100
417 changed files with 17166 additions and 5870 deletions
@@ -499,6 +499,10 @@ namespace Barotrauma
{
CastShadow = Prefab.CastShadow;
}
if (element?.GetAttribute(nameof(Indestructible)) == null)
{
Indestructible = Prefab.ConfigElement.GetAttributeBool(nameof(Indestructible), false);
}
if (Prefab.Body)
{
@@ -583,7 +587,7 @@ namespace Barotrauma
};
foreach (KeyValuePair<Identifier, SerializableProperty> property in SerializableProperties)
{
if (!property.Value.Attributes.OfType<Editable>().Any()) { continue; }
if (!property.Value.Attributes.OfType<Serialize>().Any()) { continue; }
clone.SerializableProperties[property.Key].TrySetValue(clone, property.Value.GetValue(this));
}
if (FlippedX) clone.FlipX(false);