import { QuestHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";
Constructors
Properties
Methods
Add item stack change object into output route event response
WIP - Find hideout craft id and add to unlockedProductionRecipe array in player profile also update client response recipeUnlocked array with craft id
Add missing mod items to a quest armor reward
Get players money reward bonus from profile
Get quests, strip all requirement conditions except level
Take reward item from quest and set FiR status + fix stack sizes + fix mod Ids
Add all quests to a profile with the provided statuses
Adjust skill experience for low skill levels, mimicing the official client
Adjust quest money rewards by passed in multiplier
Give player quest rewards - Skills/exp/trader standing/items/assort unlocks - Returns reward items player earned
Sets the item stack to new value, or delete the item if value <= 0 // TODO maybe merge this function and the one from customization
returns true is the level condition is satisfied
Get quests that can be shown to player after failing a quest
Fail a quest in a player profile
Get the quests found in both arrays (inner join)
Find quest with 'findItem' condition that needs the item tpl be handed in
Get a quests startedMessageText key from db, if no startedMessageText key found, use description key instead
Get quests that can be shown to player after starting a quest
Get quest by id from database (repeatables are stored in profile, check there if questId not found)
Get the locale Id from locale db for a quest message
Get quest name by quest id
Look up quest in db by accepted quest id and construct a profile-ready object ready to store in profile
Gets a flat list of reward items for the given quest at a specific state (e.g. Fail/Success)
Return a list of quests that would fail when supplied quest is completed
Get List of All Quests from db NOT CLONED
Get status of a quest in player profile by its id
Remove all quest conditions except for level requirement
Is the quest for the opposite side the player is on
Resets a quests values back to its chosen state
Check if trader has sufficient loyalty to fulfill quest requirement
Check if trader has sufficient standing to fulfill quest requirement
Alter a quests state + Add a record to its status timers object