Skip to main content
The Deno 2 Release Candidate is here
Learn more
method RepeatableQuestController.prototype.getAllowedLocations
import { RepeatableQuestController } from "https://deno.land/x/sptaki@1.2.0/controllers/RepeatableQuestController.d.ts";

Return the locations this PMC is allowed to get daily quests for based on their level

Parameters

locations: Record<ELocationName, string[]>

The original list of locations

pmcLevel: number

The level of the player PMC

Returns

Partial<Record<ELocationName, string[]>>

A filtered list of locations that allow the player PMC level to access it