diff --git a/module/actor-sheet.js b/module/actor-sheet.js
index fd9fb336..ed649231 100644
--- a/module/actor-sheet.js
+++ b/module/actor-sheet.js
@@ -220,7 +220,7 @@ export class RdDActorSheet extends ActorSheet {
RdDUtility.selectObjetType( this );
});
html.find('.creer-une-oeuvre').click(async event => {
- this.selectTypeOeuvre();
+ RdDUtility.selectTypeOeuvre(this);
});
html.find('#nettoyer-conteneurs').click(async event => {
this.actor.nettoyerConteneurs();
diff --git a/module/rdd-utility.js b/module/rdd-utility.js
index f41c37ad..4daa2008 100644
--- a/module/rdd-utility.js
+++ b/module/rdd-utility.js
@@ -285,7 +285,29 @@ export class RdDUtility {
});
d.render(true);
}
-
+
+ /* -------------------------------------------- */
+ static async selectTypeOeuvre( actorSheet) {
+ let typeObjets = RdDItem.getTypesOeuvres();
+ let options = `Selectionnez le type d'oeuvre';
+ let d = new Dialog({
+ title: "Créer un équipement",
+ content: options,
+ buttons: {
+ one: {
+ icon: '',
+ label: "Créer l'objet",
+ callback: () => this.creerObjet(actorSheet)
+ }
+ }
+ });
+ d.render(true);
+ }
+
/* -------------------------------------------- */
static buildListOptions(min, max) {
let options = ""
diff --git a/system.json b/system.json
index ffdfbe88..bdffdc55 100644
--- a/system.json
+++ b/system.json
@@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT",
- "version": "1.4.27",
+ "version": "1.4.28",
"manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "0.8.99",