SpellLessonDefinition
Defined in: client/api.d.ts:5823
A resource’s own spell lesson. Points are on the lesson’s 1024 x 1024 canvas, x right and y down.
Properties
Section titled “Properties”
optionalart?:SpellLessonArt
Defined in: client/api.d.ts:5862
Hand-drawn art instead of the drawn stroke.
chaser?
Section titled “chaser?”
optionalchaser?:number|SpellLessonChaser|null
Defined in: client/api.d.ts:5852
Seconds before the bad spark chases: a number is the Normal delay (Easy x2, Hard x0.5, Story none), null is none. Misses only cost speed boosts, so with no chaser the lesson can’t be failed.
checkpoints?
Section titled “checkpoints?”
optionalcheckpoints?:SpellLessonCheckpoint[]
Defined in: client/api.d.ts:5842
Up to 16. Default: look’s, or one per ~300 px of a new path (4-10).
finalButton?
Section titled “finalButton?”
optionalfinalButton?:2|1|3|4
Defined in: client/api.d.ts:5847
The button shown at the path’s end. Default 1.
optionalicon?:string
Defined in: client/api.d.ts:5857
A spell whose spell-bar icon to show, or a PNG among the resource’s client files. Default: look’s.
optionallook?:string
Defined in: client/api.d.ts:5832
A stock lesson (supportedSpells) to start from: its path, art, checkpoints, delays and icon.
optionalpath?: [number,number][]
Defined in: client/api.d.ts:5837
3-65 points, 800-4000 px long in all. Replaces look’s path; its art is drawn from the points unless art is set.
stroke?
Section titled “stroke?”
optionalstroke?:number
Defined in: client/api.d.ts:5867
Width of the drawn stroke in canvas pixels, 8-160. Default 56, the stock lessons’ width.
title:
string
Defined in: client/api.d.ts:5827
Shown as the lesson’s title, up to 128 characters.