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

Recursively checks if the given item is inside the stash, that is it has the stash as ancestor with slotId=hideout

Parameters

pmcData: IPmcData

Player profile

itemToCheck: Item

Item to look for

Returns

boolean

True if item exists inside stash