Another variant of the new monster, new menu category for alien items/structures, another ruin-specific music clip

This commit is contained in:
Regalis
2016-05-03 00:09:41 +03:00
parent 9f30ecc1b7
commit 2c76a6ad3c
12 changed files with 115 additions and 31 deletions
+9
View File
@@ -92,6 +92,15 @@ namespace Barotrauma
if (ToolBox.GetAttributeBool(element, "flipvertical", false)) sp.sprite.effects = SpriteEffects.FlipVertically;
}
MapEntityCategory category;
if (!Enum.TryParse(ToolBox.GetAttributeString(element, "category", "Misc"), true, out category))
{
category = MapEntityCategory.Structure;
}
sp.Category = category;
sp.Description = ToolBox.GetAttributeString(element, "description", "");
sp.size = Vector2.Zero;