Client LuaCsForBarotrauma
GiveTalentPointPerk.cs
1 using System.Collections.Generic;
2 
4 {
5  internal class GiveTalentPointPerk : PerkBase
6  {
8  public int Amount { get; set; }
9 
10  public GiveTalentPointPerk(ContentXElement element, DisembarkPerkPrefab prefab) : base(element, prefab) { }
11 
12  public override void ApplyOnRoundStart(IReadOnlyCollection<Character> teamCharacters, Submarine teamSubmarine)
13  {
14  foreach (Character character in teamCharacters)
15  {
16  character.Info.AdditionalTalentPoints += Amount;
17  }
18  }
19  }
20 }