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

Recursivly check items parents to see if it is inside the players inventory, not stash

Parameters

itemId: string

item id to check

inventoryItems: Item[]

player inventory

playerStashId: string

Players stash id

Returns

boolean

true if its in inventory