Skip to main content
The Deno 2 Release Candidate is here
Learn more
method InventoryHelper.prototype.splitStackIntoSmallerChildStacks
Re-export
import { InventoryHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Split an items stack size based on its StackMaxSize value

Parameters

assortItems: Item[]

Items to add to inventory

requestItem: AddItem

Details of purchased item to add to inventory

Array split stacks are appended to