diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 87852d8..2d86bb8 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -95,7 +95,13 @@ export class SoSActorSheet extends ActorSheet { this.actor.resetDeck(); this.render(true); }); - + html.find('.consequence-severity').click((event) => { + const li = $(event.currentTarget).parents(".item"); + const item = this.actor.getOwnedItem(li.data("item-id")); + let severity = $(event.currentTarget).val(); + this.actor.updateOwnedItem( { _id: item._id, 'data.severity': severity}); + this.render(true); + }); html.find('.lock-unlock-sheet').click((event) => { this.options.editStatSkill = !this.options.editStatSkill; this.render(true); diff --git a/system.json b/system.json index 0d4e1c5..da46eab 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-shadows-over-sol", "title": "Shadows over Sol", "description": "Shadows over Sol for FoundryVTT", - "version": "0.0.11", + "version": "0.0.12", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.9", diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 57cc17c..ea4a594 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -164,6 +164,15 @@
  • {{conseq.name}} +