LoadoutRequirement

A value shape that methods take or return.

Group
bank
Methods
None
Fields
5

Fields

FieldTypeDescription
kind"withdraw" | "fill" | "deposit""withdraw" take amount from the bank, "fill" take all the bank holds up to the free slots, "deposit" put amount back.
itemIdnumberThe item the requirement is about.
amountnumberHow many.
stackablebooleanWhether the item stacks, which decides slot arithmetic.
alreadyHeldboolean?On a "withdraw": whether some of it is already carried.

Returned by

MethodReturnsDescription
Loadout.deficit{ LoadoutRequirement }What the inventory goal still lacks or carries too much of, as rows; the bank's side read from what is remembered. It leaves out what is wo…

Field details

alreadyHeld

alreadyHeld: boolean?

On a "withdraw": whether some of it is already carried.

Returns
nil on the other kinds.