Converted the GetAttribute methods in the ToolBox class to extension methods
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Barotrauma
|
||||
public ArtifactEvent(XElement element)
|
||||
: base(element)
|
||||
{
|
||||
string itemName = ToolBox.GetAttributeString(element, "itemname", "");
|
||||
string itemName = element.GetAttributeString("itemname", "");
|
||||
|
||||
itemPrefab = ItemPrefab.list.Find(ip => ip.Name == itemName) as ItemPrefab;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user