Skip to content

five-on-it / packages/world/src/pieces / parseItemList

Function: parseItemList() ​

parseItemList(node, text): ItemCount[]

Defined in: packages/world/src/pieces.ts:460

The items a container block's items text lists: ids separated by spaces or commas, each with an optional *<count> (first_aid*2, cash*50); throws naming the node for anything else.

Parameters ​

node ​

string

text ​

string

Returns ​

ItemCount[]