automagically add the beguiller to the items
This commit is contained in:
parent
45a67dcce6
commit
e788f4fbc5
|
@ -7,6 +7,9 @@
|
||||||
"name": "Jean-Marie 'Histausse' Mineau"
|
"name": "Jean-Marie 'Histausse' Mineau"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"esmodules": [
|
||||||
|
"modules/settings.js"
|
||||||
|
],
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "10",
|
"minimum": "10",
|
||||||
|
|
9
modules/settings.js
Normal file
9
modules/settings.js
Normal 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")
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue