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

Get a compatible tpl from the array provided where it is not found in the provided incompatible mod tpls parameter

Parameters

possibleTpls: string[]

Tpls to randomly choose from

incompatibleModTpls: Set<string>

Incompatible tpls to not allow

Returns

string

Chosen tpl or null