This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static guessParams(params) { | |
let _params = []; | |
for (let i = 0; i < params.length; i++) { | |
let param = params[i]; | |
let result = {}; | |
switch (param.type) { | |
case 'Identifier': | |
// e.g. func(a){} | |
result.name = param.name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => | |
{ | |
const folder = game.journal.directory.folders.find((f) => f.name === '_fql_quests'); | |
// Stop now if no FQL quests folder exists. | |
if (!folder) { return; } | |
for (const entry of folder.content) | |
{ | |
// Detect and skip any new style FQL quests. |