add hook character.updateTalent

This commit is contained in:
Evil Factory
2022-06-22 19:53:39 -03:00
parent 3976fc8f64
commit 9fec4e378f

View File

@@ -287,7 +287,11 @@ namespace Barotrauma
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);
}
}