v1.4.4.1 (Blood in the Water Update)
This commit is contained in:
@@ -22,6 +22,12 @@ namespace Barotrauma
|
||||
|
||||
public readonly Sprite Icon;
|
||||
|
||||
/// <summary>
|
||||
/// When set to a value the talent tooltip will display a text showing the current value of the stat and the max value.
|
||||
/// For example "Progress: 37/100".
|
||||
/// </summary>
|
||||
public readonly Option<(Identifier PermanentStatIdentifier, int Max)> TrackedStat;
|
||||
|
||||
#if CLIENT
|
||||
public readonly Option<Color> ColorOverride;
|
||||
#endif
|
||||
@@ -44,6 +50,12 @@ namespace Barotrauma
|
||||
|
||||
AbilityEffectsStackWithSameTalent = element.GetAttributeBool("abilityeffectsstackwithsametalent", true);
|
||||
|
||||
var trackedStat = element.GetAttributeIdentifier("trackedstat", Identifier.Empty);
|
||||
var trackedMax = element.GetAttributeInt("trackedmax", 100);
|
||||
TrackedStat = !trackedStat.IsEmpty
|
||||
? Option.Some((trackedStat, trackedMax))
|
||||
: Option.None;
|
||||
|
||||
Identifier nameIdentifier = element.GetAttributeIdentifier("nameidentifier", Identifier.Empty);
|
||||
if (!nameIdentifier.IsEmpty)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user