Chame como
Conditions.talent.group(spec)
Registre a dependência Conditions.talent.group e depois chame-a por esse nome. Uma chamada com namespace não passa self: use uma chamada com dois-pontos ou passe o objeto você mesmo.
O que faz
Returns the talent group to query for spec: spec itself on progression clients when it is a whole number from 1 to 4, otherwise nil so the platform uses its default group.
Argumentos
| Nome | Tipo | O que faz |
|---|---|---|
spec | any | Specialization or talent group number from the editor or evaluation. |
Retornos
| 1 | number | nil | Talent group index, or nil for the default group. |
|---|
Edições
As funções auxiliares integradas são registradas em todas as edições. O que muda é a API do jogo que elas leem; quando uma está ausente, a função auxiliar recorre a uma alternativa ou retorna nil com um motivo.
Não lê nenhuma API do jogo diretamente.
Como o addon a chama
- Talento (print)
local tree=value.tree and addon.TalentTrees.Name(value.tree,addon.TalentTrees.ContextClass(),group(spec)) Conditions.talent.gridWidgetlocal talent=platform:GetGridTalentInfo((shownTier-1)*3+column,group(spec))Conditions.talent.infoif value.layout=="grid" then return platform:GetGridTalentInfo(value.value,group(spec)) endConditions.talent.treeNamelocal name=integer(value.tree,1,16) and addon.TalentTrees.Name(value.tree,addon.TalentTrees.ContextClass(),group(spec))Conditions.talent.treePickerlocal listed=addon.TalentTrees.Choices(addon.TalentTrees.ContextClass(),group(spec))Conditions.talent.treeWidgetlocal listed=addon.TalentTrees.Choices(addon.TalentTrees.ContextClass(),group(spec))
Dependências
integer→Conditions.talent.integerplatform(builtin:Conditions/talent.lua:platform)
Código-fonte
Conditions/talent.lua, linha 89. Somente leitura no jogo; Duplicar cria uma cópia editável.
Conditions.talent.group(spec)
if platform:GetClientInfo().family=="progression" and integer(spec,1,4) then return spec end