foundryvtt-reve-de-dragon/module/poetique.js

14 lines
407 B
JavaScript
Raw Permalink Normal View History

2021-05-11 21:45:43 +02:00
import { RdDDice } from "./rdd-dice.js";
import { SystemCompendiums } from "./settings/system-compendiums.js";
2021-02-06 23:58:15 +01:00
export class Poetique {
static async getExtrait() {
const items = await SystemCompendiums.getItems('extrait-poetique', 'extraitpoetique')
const selected = await RdDDice.rollOneOf(items);
return {
reference: selected?.name,
extrait: selected?.system.extrait
}
2021-02-06 23:58:15 +01:00
}
}