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