add hook character.updateTalent
This commit is contained in:
@@ -287,7 +287,11 @@ namespace Barotrauma
|
|||||||
|
|
||||||
if (TalentTree.IsViableTalentForCharacter(this, prefab.Identifier, talentSelection))
|
if (TalentTree.IsViableTalentForCharacter(this, prefab.Identifier, talentSelection))
|
||||||
{
|
{
|
||||||
GiveTalent(prefab.Identifier);
|
bool? should = GameMain.LuaCs.Hook.Call<bool>("character.updateTalent", this, prefab, c);
|
||||||
|
if (should != null)
|
||||||
|
{
|
||||||
|
GiveTalent(prefab.Identifier);
|
||||||
|
}
|
||||||
talentSelection.Add(prefab.Identifier);
|
talentSelection.Add(prefab.Identifier);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user