(965c31410) v0.10.4.0
This commit is contained in:
@@ -9,10 +9,17 @@ namespace Barotrauma
|
||||
|
||||
public Vector2 LevelRange { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// How much this skill affects characters' hiring cost
|
||||
/// </summary>
|
||||
public readonly float PriceMultiplier;
|
||||
|
||||
public bool IsPrimarySkill { get; }
|
||||
|
||||
public SkillPrefab(XElement element)
|
||||
{
|
||||
Identifier = element.GetAttributeString("identifier", "");
|
||||
|
||||
PriceMultiplier = element.GetAttributeFloat("pricemultiplier", 25.0f);
|
||||
var levelString = element.GetAttributeString("level", "");
|
||||
if (levelString.Contains(","))
|
||||
{
|
||||
@@ -23,6 +30,8 @@ namespace Barotrauma
|
||||
float skillLevel = float.Parse(levelString, System.Globalization.CultureInfo.InvariantCulture);
|
||||
LevelRange = new Vector2(skillLevel, skillLevel);
|
||||
}
|
||||
|
||||
IsPrimarySkill = element.GetAttributeBool("primary", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user