import { RepeatableQuestGenerator } from "https://deno.land/x/sptaki@1.2.0/generators/RepeatableQuestGenerator.d.ts";
Constructors
Properties
Methods
A repeatable quest, besides some more or less static components, exists of reward and condition (see assets/database/templates/repeatableQuests.json) This is a helper method for GenerateCompletionQuest to create a completion condition (of which a completion quest theoretically can have many)
Generates a valid Completion quest
Create kill condition for an elimination quest
A repeatable quest, besides some more or less static components, exists of reward and condition (see assets/database/templates/repeatableQuests.json) This is a helper method for GenerateEliminationQuest to create a location condition.
Generate a randomised Elimination quest
Exploration repeatable quests can specify a required extraction point. This method creates the according object which will be appended to the conditions array
Generates a valid Exploration quest
Generates the base object of quest type format given as templates in assets/database/templates/repeatableQuests.json The templates include Elimination, Completion and Extraction quest types
Get a number of kills neded to complete elimination quest
Filter a maps exits to just those for the desired side
Convert a location into an quest code can read (e.g. factory4_day into 55f2d3fd4bdc2d5f408b4567)
This method is called by /GetClientRepeatableQuests/ and creates one element of quest type format (see assets/database/templates/repeatableQuests.json). It randomly draws a quest type (currently Elimination, Completion or Exploration) as well as a trader who is providing the quest