v1.4.4.1 (Blood in the Water Update)

This commit is contained in:
Regalis11
2024-04-24 18:09:05 +03:00
parent 89b91d1c3e
commit ff1b8951a7
397 changed files with 15250 additions and 6479 deletions
@@ -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)
{