Llamar como
Conditions.talent.legacySlot(value)
Registra la dependencia Conditions.talent.legacySlot y luego llámala con ese nombre. Una llamada con espacio de nombres no pasa self: usa una llamada con dos puntos o pasa tú mismo el objeto.
Qué hace
True when a TALENT condition still uses the historical single-number layout: no layout, tree or talent field, and value.value a whole number from 1 to 21. Evaluation reports these as historical-talent-layout.
Argumentos
| Nombre | Tipo | Qué hace |
|---|---|---|
value | table | Saved TALENT condition settings. |
Retornos
| 1 | boolean | True when the value passes the check. |
|---|
Ediciones
Las funciones auxiliares integradas se registran en todas las ediciones. Lo que cambia es la API del juego que leen; donde falta alguna, la función auxiliar recurre a una alternativa o devuelve nil con un motivo.
No lee directamente ninguna API del juego.
Cómo la llama el addon
- Talento (evaluate)
if legacySlot(value) then return nil,"historical-talent-layout" end
Dependencias
integer→Conditions.talent.integer
Código fuente
Conditions/talent.lua, línea 64. Solo lectura en el juego; Duplicar crea una copia editable.
Conditions.talent.legacySlot(value)
return value.layout==nil and value.tree==nil and value.talent==nil and integer(value.value,1,21)