SpellDefinitionInput
Defined in: server/api.d.ts:5993
What Spells.define takes.
Properties
Section titled “Properties”
readonlybase:string
Defined in: server/api.d.ts:6002
The player spell whose class it runs (projectile, effects, cast animation), as in its DA_
description?
Section titled “description?”
optionaldescription?:string
Defined in: server/api.d.ts:6027
The spell menu’s description text, at most 300 bytes. Omitted: none.
optionalicon?:string
Defined in: server/api.d.ts:6012
A PNG for its symbol, as “files ships to clients. Omitted: the base spell’s.
readonlyid:string
Defined in: server/api.d.ts:5997
The new spell’s id: 3 to 32 characters, a letter then letters, digits or ‘_’. Not an existing game spell.
incantation?
Section titled “incantation?”
optionalincantation?:string
Defined in: server/api.d.ts:6032
What the caster says: another player spell’s line, e.g. “Incendio”, or “none” for silence. Omitted: the base spell’s.
optionalname?:string
Defined in: server/api.d.ts:6022
The title the game shows in its spell menu and spell bar, at most 48 bytes. Omitted: the id.
parts?
Section titled “parts?”
optionalparts?:SpellParts
Defined in: server/api.d.ts:6017
Parts taken from other player spells: projectile, onHit, cast, muzzle.
record?
Section titled “record?”
optionalrecord?:string
Defined in: server/api.d.ts:6037
A mod pak’s own SpellToolRecord to run in place of the base’s, as a plugin-rooted Package.Object path. The base still gives its database row, category and symbol, and is what a client without the pak casts. Omitted: the base’s record.
stats?
Section titled “stats?”
optionalstats?:SpellStats
Defined in: server/api.d.ts:6007
Numbers that replace the base spell’s.