Client LuaCsForBarotrauma
GiveTalentPointPerk.cs
1
using
System.Collections.Generic;
2
3
namespace
Barotrauma.PerkBehaviors
4
{
5
internal
class
GiveTalentPointPerk : PerkBase
6
{
7
[
Serialize
(0,
IsPropertySaveable
.Yes)]
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
}
Barotrauma.Character
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:32
Barotrauma.Character.Info
CharacterInfo Info
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:556
Barotrauma.CharacterInfo.AdditionalTalentPoints
int AdditionalTalentPoints
Definition:
BarotraumaShared/SharedSource/Characters/CharacterInfo.cs:403
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.Serialize
Definition:
SerializableProperty.cs:23
Barotrauma.Submarine
Definition:
BarotraumaShared/SharedSource/Map/Submarine.cs:25
Barotrauma.PerkBehaviors
Definition:
GiveTalentPointPerk.cs:4
Barotrauma.IsPropertySaveable
IsPropertySaveable
Definition:
SerializableProperty.cs:16
Barotrauma
BarotraumaShared
SharedSource
DisembarkPerks
PerkBehaviors
GiveTalentPointPerk.cs
Generated by
1.9.1