automagically add the beguiller to the items

This commit is contained in:
Histausse 2023-06-10 20:38:33 +02:00
parent 45a67dcce6
commit e788f4fbc5
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,9 @@
"name": "Jean-Marie 'Histausse' Mineau"
}
],
"esmodules": [
"modules/settings.js"
],
"version": "0.0.1",
"compatibility": {
"minimum": "10",

9
modules/settings.js Normal file
View file

@ -0,0 +1,9 @@
Hooks.on("ready", function() {
console.log("Adding the Beguiller class");
if (game.items.filter((item) => item.name == 'The Beguiler' && item.type == 'class').length == 0) {
game.items.importFromCompendium(game.packs.get("the_beguiler_module.dwgl-classe"), "vtwvUr31f4qcVSWx")
}
});