(5c35a640e) Update tutorial-rework with dev
This commit is contained in:
@@ -8,6 +8,8 @@ namespace Barotrauma
|
||||
{
|
||||
partial class StructurePrefab : MapEntityPrefab
|
||||
{
|
||||
public XElement ConfigElement { get; private set; }
|
||||
|
||||
private bool canSpriteFlipX, canSpriteFlipY;
|
||||
|
||||
private float health;
|
||||
@@ -150,6 +152,7 @@ namespace Barotrauma
|
||||
{
|
||||
name = element.GetAttributeString("name", "")
|
||||
};
|
||||
sp.ConfigElement = element;
|
||||
if (string.IsNullOrEmpty(sp.name)) sp.name = element.Name.ToString();
|
||||
sp.identifier = element.GetAttributeString("identifier", "");
|
||||
|
||||
@@ -214,6 +217,10 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
SerializableProperty.DeserializeProperties(sp, element);
|
||||
if (sp.Body)
|
||||
{
|
||||
sp.Tags.Add("wall");
|
||||
}
|
||||
string translatedDescription = TextManager.Get("EntityDescription." + sp.identifier, true);
|
||||
if (!string.IsNullOrEmpty(translatedDescription)) sp.Description = translatedDescription;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user