2021-05-11 21:45:43 +02:00
|
|
|
import { RdDDice } from "./rdd-dice.js";
|
2022-11-16 03:00:38 +01:00
|
|
|
import { SystemCompendiums } from "./settings/system-compendiums.js";
|
2021-02-06 23:58:15 +01:00
|
|
|
|
|
|
|
export class Poetique {
|
2022-11-16 03:00:38 +01:00
|
|
|
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
|
|
|
}
|
2022-11-16 03:00:38 +01:00
|
|
|
}
|