Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/DisembarkPerks/PerkBehaviors/GiveTalentPointPerk.cs
T
2024-10-22 17:29:04 +03:00

20 lines
635 B
C#

using System.Collections.Generic;
namespace Barotrauma.PerkBehaviors
{
internal class GiveTalentPointPerk : PerkBase
{
[Serialize(0, IsPropertySaveable.Yes)]
public int Amount { get; set; }
public GiveTalentPointPerk(ContentXElement element, DisembarkPerkPrefab prefab) : base(element, prefab) { }
public override void ApplyOnRoundStart(IReadOnlyCollection<Character> teamCharacters, Submarine teamSubmarine)
{
foreach (Character character in teamCharacters)
{
character.Info.AdditionalTalentPoints += Amount;
}
}
}
}