diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 2da66c0c..57481d92 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -133,14 +133,15 @@ export class RdDActorSheet extends ActorSheet { // Update Inventory Item html.find('.item-edit').click(ev => { const li = $(ev.currentTarget).parents(".item"); - const item = this.actor.getOwnedItem(li.data("itemId")); + const item = this.actor.getOwnedItem(li.data("item-id")); item.sheet.render(true); }); // Delete Inventory Item html.find('.item-delete').click(ev => { const li = $(ev.currentTarget).parents(".item"); - this.actor.deleteOwnedItem(li.data("itemId")); + this.actor.deleteOwnedItem(li.data("item-id")); + console.log("Delete item :", li.data("item-id") ); li.slideUp(200, () => this.render(false)); }); @@ -170,7 +171,7 @@ export class RdDActorSheet extends ActorSheet { // Equip Inventory Item html.find('.item-equip').click(ev => { const li = $(ev.currentTarget).parents(".item"); - this.actor.equiperObjet(li.data("itemId")); + this.actor.equiperObjet(li.data("item-id")); this.render(true); }); diff --git a/system.json b/system.json index 65fff84a..b4a8fbf8 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": "0.9.21", + "version": "0.9.22", "minimumCoreVersion": "0.6.0", "compatibleCoreVersion": "0.7.5", "templateVersion": 38, diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 2eea75d4..b4a3edef 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -404,8 +404,12 @@ Sorts:
    {{#each data.sorts as |mysort key|}} -
  1. - {{mysort.name}} {{mysort.data.draconic}} - {{mysort.data.difficulte}} +
  2. + {{mysort.name}} + {{mysort.data.draconic}} / {{mysort.data.difficulte}} +
    + +
  3. {{/each}}
diff --git a/templates/item-arme-sheet.html b/templates/item-arme-sheet.html index 701f9626..666a80b0 100644 --- a/templates/item-arme-sheet.html +++ b/templates/item-arme-sheet.html @@ -55,7 +55,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-armure-sheet.html b/templates/item-armure-sheet.html index dec0f65c..00c49720 100644 --- a/templates/item-armure-sheet.html +++ b/templates/item-armure-sheet.html @@ -31,7 +31,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-competence-creature-sheet.html b/templates/item-competence-creature-sheet.html index 3c50a1e2..7f469e42 100644 --- a/templates/item-competence-creature-sheet.html +++ b/templates/item-competence-creature-sheet.html @@ -27,7 +27,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-competence-sheet.html b/templates/item-competence-sheet.html index 6b46b489..da9e8389 100644 --- a/templates/item-competence-sheet.html +++ b/templates/item-competence-sheet.html @@ -43,7 +43,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-competencecreature-sheet.html b/templates/item-competencecreature-sheet.html index 3c50a1e2..7f469e42 100644 --- a/templates/item-competencecreature-sheet.html +++ b/templates/item-competencecreature-sheet.html @@ -27,7 +27,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-conteneur-sheet.html b/templates/item-conteneur-sheet.html index 72f986c2..2017a444 100644 --- a/templates/item-conteneur-sheet.html +++ b/templates/item-conteneur-sheet.html @@ -27,7 +27,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-herbe-sheet.html b/templates/item-herbe-sheet.html index 040898d7..c4863651 100644 --- a/templates/item-herbe-sheet.html +++ b/templates/item-herbe-sheet.html @@ -23,7 +23,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-ingredient-sheet.html b/templates/item-ingredient-sheet.html index ca4e2d81..61b98f9d 100644 --- a/templates/item-ingredient-sheet.html +++ b/templates/item-ingredient-sheet.html @@ -27,7 +27,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-livre-sheet.html b/templates/item-livre-sheet.html index ed307c96..8690dd5b 100644 --- a/templates/item-livre-sheet.html +++ b/templates/item-livre-sheet.html @@ -39,7 +39,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-munition-sheet.html b/templates/item-munition-sheet.html index 7d9514ec..e5839d14 100644 --- a/templates/item-munition-sheet.html +++ b/templates/item-munition-sheet.html @@ -23,7 +23,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-ombre-sheet.html b/templates/item-ombre-sheet.html index d6f1fdeb..a7dbdff0 100644 --- a/templates/item-ombre-sheet.html +++ b/templates/item-ombre-sheet.html @@ -15,7 +15,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-potion-sheet.html b/templates/item-potion-sheet.html index 7e285da4..e061946e 100644 --- a/templates/item-potion-sheet.html +++ b/templates/item-potion-sheet.html @@ -19,7 +19,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-queue-sheet.html b/templates/item-queue-sheet.html index d6f1fdeb..a7dbdff0 100644 --- a/templates/item-queue-sheet.html +++ b/templates/item-queue-sheet.html @@ -15,7 +15,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-rencontresTMR-sheet.html b/templates/item-rencontresTMR-sheet.html index 8ed8f6b5..6cd23ad2 100644 --- a/templates/item-rencontresTMR-sheet.html +++ b/templates/item-rencontresTMR-sheet.html @@ -11,7 +11,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-sort-sheet.html b/templates/item-sort-sheet.html index c22d51c3..b1995242 100644 --- a/templates/item-sort-sheet.html +++ b/templates/item-sort-sheet.html @@ -55,7 +55,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-souffle-sheet.html b/templates/item-souffle-sheet.html index 8ed8f6b5..6cd23ad2 100644 --- a/templates/item-souffle-sheet.html +++ b/templates/item-souffle-sheet.html @@ -11,7 +11,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-tache-sheet.html b/templates/item-tache-sheet.html index e76c942d..41247a05 100644 --- a/templates/item-tache-sheet.html +++ b/templates/item-tache-sheet.html @@ -27,7 +27,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-tete-sheet.html b/templates/item-tete-sheet.html index 8ed8f6b5..6cd23ad2 100644 --- a/templates/item-tete-sheet.html +++ b/templates/item-tete-sheet.html @@ -11,7 +11,7 @@
Description :
-
+
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}