Unstable 0.17.0.0

This commit is contained in:
Markus Isberg
2022-02-26 02:43:01 +09:00
parent a83f375681
commit 3974067915
913 changed files with 32472 additions and 32364 deletions
@@ -47,7 +47,7 @@ namespace Barotrauma.Items.Components
private int qualityLevel;
[Editable, Serialize(0, true)]
[Editable, Serialize(0, IsPropertySaveable.Yes)]
public int QualityLevel
{
get { return qualityLevel; }
@@ -65,7 +65,7 @@ namespace Barotrauma.Items.Components
}
}
public Quality(Item item, XElement element) : base(item, element)
public Quality(Item item, ContentXElement element) : base(item, element)
{
foreach (XElement subElement in element.Elements())
{
@@ -77,7 +77,7 @@ namespace Barotrauma.Items.Components
string statTypeString = subElement.GetAttributeString("stattype", "");
if (!Enum.TryParse(statTypeString, true, out StatType statType))
{
DebugConsole.ThrowError("Invalid stat type type \"" + statTypeString + "\" in item (" + item.prefab.Identifier + ")");
DebugConsole.ThrowError("Invalid stat type type \"" + statTypeString + "\" in item (" + ((MapEntity)item).Prefab.Identifier + ")");
}
float statValue = subElement.GetAttributeFloat("value", 0f);
statValues.TryAdd(statType, statValue);