Using WH datasets
This commit is contained in:
Vendored
+21
-1
@@ -5,6 +5,26 @@ interface TalentTree {
|
||||
talents: Talent[]
|
||||
}
|
||||
|
||||
interface TalentData {
|
||||
/** ID for the Talent */
|
||||
id: number
|
||||
/** Row for talent. Starts at 0 */
|
||||
row: number
|
||||
/** Column for talent. Starts at 0 */
|
||||
col: number
|
||||
/** Icon */
|
||||
icon: string
|
||||
/** Array of spell IDs */
|
||||
ranks: number[]
|
||||
/** Talent dependencies for this talent */
|
||||
requires: Array<{
|
||||
/** Talent ID */
|
||||
id: number
|
||||
/** Amount of points required in this talent */
|
||||
qty: number
|
||||
}>
|
||||
}
|
||||
|
||||
interface Talent {
|
||||
name: string
|
||||
row: number
|
||||
@@ -14,4 +34,4 @@ interface Talent {
|
||||
prerequisite?: [number, number] | number // [row, column] OR index
|
||||
}
|
||||
|
||||
type TalentClickHandler = (talentId, clickType: 'add' | 'remove') => void
|
||||
type TalentClickHandler = (specId: number, talentId: number, modifier: 1 | -1) => void
|
||||
Reference in New Issue
Block a user