diff --git a/assets/icons/advantage.webp b/assets/icons/advantage.webp new file mode 100644 index 0000000..5cd53f4 Binary files /dev/null and b/assets/icons/advantage.webp differ diff --git a/assets/icons/background_heritiers.xcf b/assets/icons/background_heritiers.xcf new file mode 100644 index 0000000..e5512de Binary files /dev/null and b/assets/icons/background_heritiers.xcf differ diff --git a/assets/icons/contact.webp b/assets/icons/contact.webp new file mode 100644 index 0000000..966e4ef Binary files /dev/null and b/assets/icons/contact.webp differ diff --git a/assets/icons/disadvantage.webp b/assets/icons/disadvantage.webp new file mode 100644 index 0000000..993d138 Binary files /dev/null and b/assets/icons/disadvantage.webp differ diff --git a/assets/icons/power.webp b/assets/icons/power.webp new file mode 100644 index 0000000..c2fe698 Binary files /dev/null and b/assets/icons/power.webp differ diff --git a/assets/icons/skill.webp b/assets/icons/skill.webp new file mode 100644 index 0000000..e1af8f5 Binary files /dev/null and b/assets/icons/skill.webp differ diff --git a/modules/heritiers-item-sheet.js b/modules/heritiers-item-sheet.js index a11d3e2..beb7a94 100644 --- a/modules/heritiers-item-sheet.js +++ b/modules/heritiers-item-sheet.js @@ -68,9 +68,6 @@ export class HeritiersItemSheet extends ItemSheet { isGM: game.user.isGM } - if ( objectData.type == "don") { - formData.sacrifice = await TextEditor.enrichHTML(this.object.system.sacrifice, {async: true}) - } //this.options.editable = !(this.object.origin == "embeddedItem"); console.log("ITEM DATA", formData, this); return formData; @@ -171,17 +168,17 @@ export class HeritiersItemSheet extends ItemSheet { this.object.update( { 'system.predilections': pred }) }) - html.find('#add-predilection').click(ev => { - let pred = duplicate(this.object.system.predilections) - pred.push( { name: "Nouvelle prédilection", id: randomID(16), used: false }) - this.object.update( { 'system.predilections': pred }) + html.find('#add-specialite').click(ev => { + let spec = duplicate(this.object.system.specialites) + spec.push( { name: "Nouvelle Spécialité", id: randomID(16), used: false }) + this.object.update( { 'system.specialites': spec }) }) - html.find('.delete-prediction').click(ev => { - const li = $(ev.currentTarget).parents(".prediction-item") - let index = li.data("prediction-index") - let pred = duplicate(this.object.system.predilections) - pred.splice(index,1) - this.object.update( { 'system.predilections': pred }) + html.find('.delete-specialite').click(ev => { + const li = $(ev.currentTarget).parents(".specialite-item") + let index = li.data("specialite-index") + let spec = duplicate(this.object.system.specialites) + spec.splice(index,1) + this.object.update( { 'system.specialites': spec }) }) html.find('#add-automation').click(ev => { diff --git a/modules/heritiers-item.js b/modules/heritiers-item.js index f5d076a..430475a 100644 --- a/modules/heritiers-item.js +++ b/modules/heritiers-item.js @@ -1,18 +1,16 @@ import { HeritiersUtility } from "./heritiers-utility.js"; export const defaultItemImg = { - competence: "systems/fvtt-les-heritiers/assets/icons/competence.webp", - arme: "systems/fvtt-les-heritiers/assets/icons/melee.webp", + competence: "systems/fvtt-les-heritiers/assets/icons/skill.webp", + avantage: "systems/fvtt-les-heritiers/assets/icons/advantage.webp", + desavantage: "systems/fvtt-les-heritiers/assets/icons/disadvantage.webp", + contact: "systems/fvtt-les-heritiers/assets/icons/contact.webp", + pouvoir: "systems/fvtt-les-heritiers/assets/icons/power.webp", equipement: "systems/fvtt-les-heritiers/assets/icons/equipement.webp", + arme: "systems/fvtt-les-heritiers/assets/icons/melee.webp", monnaie: "systems/fvtt-les-heritiers/assets/icons/monnaie.webp", - predilection: "systems/fvtt-les-heritiers/assets/icons/predilection.webp", protection: "systems/fvtt-les-heritiers/assets/icons/protection.webp", - talent: "systems/fvtt-les-heritiers/assets/icons/talent.webp", - historique: "systems/fvtt-les-heritiers/assets/icons/historique.webp", - profil: "systems/fvtt-les-heritiers/assets/icons/profil.webp", - artefact: "systems/fvtt-les-heritiers/assets/icons/artefact.webp", - contact: "systems/fvtt-les-heritiers/assets/icons/contacts.webp", - ressource: "systems/fvtt-les-heritiers/assets/icons/ressources.webp", + talent: "systems/fvtt-les-heritiers/assets/icons/talent.webp" } /** diff --git a/styles/simple.css b/styles/simple.css index bf1ebd3..fe88d2e 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -1175,8 +1175,8 @@ ul, li { .chat-card-button { box-shadow: inset 0px 1px 0px 0px #a6827e; - background: linear-gradient(to bottom, #41545a 5%, #2e5561 100%); - background-color: #7d5d3b00; + background-image: url("../assets/ui/bandeau_01.webp"); + /*background-color: #7d5d3b00;*/ border-radius: 3px; border: 2px ridge #846109; display: inline-block; @@ -1191,8 +1191,8 @@ ul, li { } .chat-card-button:hover { - background: linear-gradient(to bottom, #800000 5%, #3e0101 100%); - background-color: rgb(56, 33, 33); + background: linear-gradient(to bottom, #800000 5%, #3e0101 60%); + /*background-color: rgba(56, 33, 33, 60);*/ } .chat-card-button:active { position:relative; diff --git a/system.json b/system.json index 13f8a17..fc8d343 100644 --- a/system.json +++ b/system.json @@ -1,7 +1,7 @@ { "id": "fvtt-les-heritiers", "description": "Les Héritiers pour FoundryVTT", - "version": "10.0.0", + "version": "10.0.1", "authors": [ { "name": "Uberwald/LeRatierBretonnien", @@ -19,7 +19,7 @@ "gridUnits": "m", "license": "LICENSE.txt", "manifest": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/raw/branch/master/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-10.0.0.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-10.0.1.zip", "languages": [ { "lang": "fr", @@ -38,7 +38,7 @@ "private": false, "flags": {} } - ], + ], "primaryTokenAttribute": "sante.vigueur", "secondaryTokenAttribute": "bonneaventure.actuelle", "socket": true, diff --git a/template.json b/template.json index dbe6a7a..517dcde 100644 --- a/template.json +++ b/template.json @@ -216,7 +216,7 @@ "types": [ "talenfeet", "avantage", - "desavangate", + "desavantage", "capacitenaturelle", "pouvoir", "atoutfeerique", diff --git a/templates/item-avantage-sheet.html b/templates/item-avantage-sheet.html new file mode 100644 index 0000000..b75198d --- /dev/null +++ b/templates/item-avantage-sheet.html @@ -0,0 +1,22 @@ +
+ {{> systems/fvtt-les-heritiers/templates/partial-item-header.html}} + + {{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}} + + {{!-- Sheet Body --}} +
+ + {{> systems/fvtt-les-heritiers/templates/partial-item-description.html}} + + +
+ +
    + + +
+ +
+ +
+
diff --git a/templates/item-competence-sheet.html b/templates/item-competence-sheet.html index e95c530..72aab26 100644 --- a/templates/item-competence-sheet.html +++ b/templates/item-competence-sheet.html @@ -57,6 +57,8 @@
  • +