ConfigLoadout

A value shape that methods take or return.

Methods
None
Fields
5

Fields

FieldTypeDescription
namestringWhat the user called it.
equipmentstringThe worn items, as an equipment goal for bank:newLoadout. An exact quantity is spelled =n, and a slot the editor keeps empty is a `slot…
inventory{ InventoryGoalEntry }The carried items, as an inventory goal for bank:newLoadout: a table rather than the goal string, because a slot can accept alternates (a…
runePouch{ { rune: Rune, amount: number } }The rune pouch's contents, as runePouch:fillFromBank and runePouch:missing take them.
autocaststring?The spell to autocast, as magic:setAutocast takes it.

Field details

equipment

equipment: string

The worn items, as an equipment goal for bank:newLoadout. An exact quantity is spelled =n, and a slot the editor keeps empty is a slot:empty entry ("4151:1,shield:empty").

inventory

inventory: { InventoryGoalEntry }

The carried items, as an inventory goal for bank:newLoadout: a table rather than the goal string, because a slot can accept alternates (a half summer pie satisfies a summer pie). A slot with alternates is a kind = "anyOf" row, the primary id first.

autocast

autocast: string?

The spell to autocast, as magic:setAutocast takes it.

Returns
nil when the loadout sets none.