Compare commits
	
		
			15 Commits
		
	
	
		
			foundryvtt
			...
			2137a6c403
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 2137a6c403 | |||
| 99f5578c4f | |||
| a6ae7babbe | |||
| 814266e649 | |||
| 080d05d2cd | |||
| f8f889e9f9 | |||
| ad80802af6 | |||
| 0f7b9baf51 | |||
| b866c95ebd | |||
| 689e287ac7 | |||
| 40b0d7e6dc | |||
| d439d73636 | |||
| e91eea532d | |||
| f116003d6f | |||
| c3a44665c5 | 
							
								
								
									
										17
									
								
								changelog.md
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								changelog.md
									
									
									
									
									
								
							@@ -1,4 +1,21 @@
 | 
			
		||||
# 12.0
 | 
			
		||||
## 12.0.14 - Les légions d'Astrobazzarh
 | 
			
		||||
- Feuille de PNJ:
 | 
			
		||||
  - boutons standard (encaissement, ...)
 | 
			
		||||
  - boutons pour ajuster les compteurs
 | 
			
		||||
  - visualisation des blessures
 | 
			
		||||
  - click sur blessure pour ajouter/enlever
 | 
			
		||||
  - gestion des armes
 | 
			
		||||
 | 
			
		||||
## 12.0.13 - La Chance d'Astrobazzarh
 | 
			
		||||
- Fix: jets de caractéristiques
 | 
			
		||||
 | 
			
		||||
## 12.0.12 - L'étalage d'Astrobazzarh
 | 
			
		||||
- Fix: On peut de nouveau vendre des items sans propriétaire, depuis les compendiums ou depuis l'onglet des Objets
 | 
			
		||||
- Début de Feuille PNJ au format des encarts Scriptarium
 | 
			
		||||
  - support des jets de caractéristiques
 | 
			
		||||
  - support des jets de compétences
 | 
			
		||||
 | 
			
		||||
## 12.0.11 - Le scriptorium d'Astrobazzarh
 | 
			
		||||
- ajout d'un bouton pour générer les éléments de description d'un personnage
 | 
			
		||||
- ajout du logo en background dans la liste des systèmes Foundry
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ export class DialogItemVente extends Dialog {
 | 
			
		||||
    const venteData = {
 | 
			
		||||
      item: item,
 | 
			
		||||
      alias: item.actor?.name ?? game.user.name,
 | 
			
		||||
      vendeurId: item.actor.id,
 | 
			
		||||
      vendeurId: item.actor?.id,
 | 
			
		||||
      prixOrigine: item.calculerPrixCommercant(),
 | 
			
		||||
      prixUnitaire: item.calculerPrixCommercant(),
 | 
			
		||||
      prixLot: item.calculerPrixCommercant(),
 | 
			
		||||
 
 | 
			
		||||
@@ -128,7 +128,7 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
 | 
			
		||||
      this.render(true);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    this.html.find('.visu-tmr').click(async event => this.actor.displayTMR("visu"))
 | 
			
		||||
    this.html.find('.button-tmr-visu').click(async event => this.actor.displayTMR("visu"))
 | 
			
		||||
 | 
			
		||||
    // Everything below here is only needed if the sheet is editable
 | 
			
		||||
    if (!this.options.editable) return;
 | 
			
		||||
@@ -186,7 +186,7 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
 | 
			
		||||
    this.html.find('.item-equip').click(async event => this.actor.equiperObjet(RdDSheetUtility.getItemId(event)))
 | 
			
		||||
    this.html.find('.chance-actuelle').click(async event => this.actor.rollCarac('chance-actuelle'))
 | 
			
		||||
 | 
			
		||||
    this.html.find('.chance-appel').click(async event => this.actor.rollAppelChance())
 | 
			
		||||
    this.html.find('.button-appel-chance').click(async event => this.actor.rollAppelChance())
 | 
			
		||||
 | 
			
		||||
    this.html.find('[name="jet-astrologie"]').click(async event => this.actor.astrologieNombresAstraux())
 | 
			
		||||
    this.html.find('.tache-label a').click(async event => this.actor.rollTache(RdDSheetUtility.getItemId(event)))
 | 
			
		||||
@@ -218,9 +218,9 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Points de reve actuel
 | 
			
		||||
    this.html.find('.ptreve-actuel a').click(async event => this.actor.rollCarac('reve-actuel', true))
 | 
			
		||||
    this.html.find('.roll-reve-actuel').click(async event => this.actor.rollCarac('reve-actuel', true))
 | 
			
		||||
    this.html.find('.empoignade-label a').click(async event => RdDEmpoignade.onAttaqueEmpoignadeFromItem(RdDSheetUtility.getItem(event, this.actor)))
 | 
			
		||||
    this.html.find('.arme-label a').click(async event => this.actor.rollArme(foundry.utils.duplicate(this._getEventArmeCombat(event))))
 | 
			
		||||
    this.html.find('.roll-arme').click(async event => this.actor.rollArme(foundry.utils.duplicate(this._getEventArmeCombat(event))))
 | 
			
		||||
 | 
			
		||||
    // Initiative pour l'arme
 | 
			
		||||
    this.html.find('.arme-initiative a').click(async event => {
 | 
			
		||||
@@ -234,10 +234,10 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
 | 
			
		||||
    });
 | 
			
		||||
    // Display TMR
 | 
			
		||||
 | 
			
		||||
    this.html.find('.monte-tmr').click(async event => this.actor.displayTMR("normal"))
 | 
			
		||||
    this.html.find('.monte-tmr-rapide').click(async event => this.actor.displayTMR("rapide"))
 | 
			
		||||
    this.html.find('.button-tmr').click(async event => this.actor.displayTMR("normal"))
 | 
			
		||||
    this.html.find('.button-tmr-rapide').click(async event => this.actor.displayTMR("rapide"))
 | 
			
		||||
 | 
			
		||||
    this.html.find('.repos').click(async event => await this.actor.repos())
 | 
			
		||||
    this.html.find('.button-repos').click(async event => await this.actor.repos())
 | 
			
		||||
 | 
			
		||||
    this.html.find('.carac-xp-augmenter').click(async event => this.actor.updateCaracXPAuto(event.currentTarget.name.replace("augmenter.", "")))
 | 
			
		||||
    this.html.find('.competence-xp-augmenter').click(async event => this.actor.updateCompetenceXPAuto(RdDSheetUtility.getItemId(event)))
 | 
			
		||||
@@ -279,7 +279,7 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
 | 
			
		||||
    this.html.find('.moral-malheureux').click(async event => this.actor.jetDeMoral('malheureuse'))
 | 
			
		||||
    this.html.find('.moral-neutre').click(async event => this.actor.jetDeMoral('neutre'))
 | 
			
		||||
    this.html.find('.moral-heureux').click(async event => this.actor.jetDeMoral('heureuse'))
 | 
			
		||||
    this.html.find('.ethylisme-test').click(async event => this.actor.jetEthylisme())
 | 
			
		||||
    this.html.find('.button-ethylisme').click(async event => this.actor.jetEthylisme())
 | 
			
		||||
 | 
			
		||||
    this.html.find('.ptreve-actuel-plus').click(async event => this.actor.reveActuelIncDec(1))
 | 
			
		||||
    this.html.find('.ptreve-actuel-moins').click(async event => this.actor.reveActuelIncDec(-1))
 | 
			
		||||
 
 | 
			
		||||
@@ -24,14 +24,15 @@ export class RdDBaseActorReveSheet extends RdDBaseActorSheet {
 | 
			
		||||
    // Everything below here is only needed if the sheet is editable
 | 
			
		||||
    if (!this.options.editable) return;
 | 
			
		||||
 | 
			
		||||
    this.html.find('.encaisser-direct').click(async event => this.actor.encaisser())
 | 
			
		||||
    this.html.find('.carac-label a').click(async event => this.actor.rollCarac(Grammar.toLowerCaseNoAccent(event.currentTarget.attributes.name.value)));
 | 
			
		||||
    this.html.find('a.competence-label').click(async event => this.actor.rollCompetence(RdDSheetUtility.getItemId(event)));
 | 
			
		||||
    this.html.find('.button-encaissement').click(async event => this.actor.encaisser())
 | 
			
		||||
    this.html.find('.roll-carac').click(async event => {
 | 
			
		||||
      this.actor.rollCarac(Grammar.toLowerCaseNoAccent(event.currentTarget.attributes['data-carac-name'].value))});
 | 
			
		||||
    this.html.find('.roll-competence').click(async event => this.actor.rollCompetence(RdDSheetUtility.getItemId(event)));
 | 
			
		||||
    this.html.find('.endurance-plus').click(async event => this.actor.santeIncDec("endurance", 1));
 | 
			
		||||
    this.html.find('.endurance-moins').click(async event => this.actor.santeIncDec("endurance", -1));
 | 
			
		||||
 | 
			
		||||
    if (game.user.isGM) {
 | 
			
		||||
      this.html.find('.remise-a-neuf').click(async event => this.actor.remiseANeuf())
 | 
			
		||||
      this.html.find('.button-remise-a-neuf').click(async event => this.actor.remiseANeuf())
 | 
			
		||||
      this.html.find('.delete-active-effect').click(async event => this.actor.removeEffect(this.html.find(event.currentTarget).parents(".active-effect").data('effect')));
 | 
			
		||||
      this.html.find('.enlever-tous-effets').click(async event => await this.actor.removeEffects());
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -296,8 +296,12 @@ export class RdDBaseActorReve extends RdDBaseActor {
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  async rollCarac(caracName, jetResistance = undefined) {
 | 
			
		||||
    if (Grammar.equalsInsensitive(caracName, 'taille')){
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    RdDEmpoignade.checkEmpoignadeEnCours(this)
 | 
			
		||||
    let selectedCarac = this.getCaracByName(caracName)
 | 
			
		||||
    console.log("selectedCarac", selectedCarac)
 | 
			
		||||
    await this.openRollDialog({
 | 
			
		||||
      name: 'jet-' + caracName,
 | 
			
		||||
      label: 'Jet ' + Grammar.apostrophe('de', selectedCarac.label),
 | 
			
		||||
 
 | 
			
		||||
@@ -180,7 +180,7 @@ export class RdDBaseActorSang extends RdDBaseActorReve {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    const endActuelle = this.getEnduranceActuelle();
 | 
			
		||||
    const blessure = await RdDItemBlessure.createBlessure(this, encaissement.gravite, encaissement.dmg.loc.label, attacker);
 | 
			
		||||
    const blessure = await RdDItemBlessure.createBlessure(this, encaissement.gravite, encaissement.dmg?.loc.label ??'', attacker);
 | 
			
		||||
    if (blessure.isCritique()) {
 | 
			
		||||
      encaissement.endurance = endActuelle;
 | 
			
		||||
    }
 | 
			
		||||
@@ -196,6 +196,13 @@ export class RdDBaseActorSang extends RdDBaseActorReve {
 | 
			
		||||
    return blessure;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  async supprimerBlessure({gravite}) {
 | 
			
		||||
    const toDelete = this.itemTypes[ITEM_TYPES.blessure].find(it => it.system.gravite == gravite)?.id
 | 
			
		||||
    if (toDelete){
 | 
			
		||||
      await this.deleteEmbeddedDocuments('Item', [toDelete]);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  async supprimerBlessures(filterToDelete) {
 | 
			
		||||
    const toDelete = this.filterItems(filterToDelete, ITEM_TYPES.blessure)
 | 
			
		||||
      .map(it => it.id);
 | 
			
		||||
@@ -203,7 +210,7 @@ export class RdDBaseActorSang extends RdDBaseActorReve {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  countBlessures(filter = it => !it.isContusion()) {
 | 
			
		||||
    return this.filterItems(filter, 'blessure').length
 | 
			
		||||
    return this.filterItems(filter, ITEM_TYPES.blessure).length
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										115
									
								
								module/actor/export-scriptarium/actor-encart-sheet.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								module/actor/export-scriptarium/actor-encart-sheet.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,115 @@
 | 
			
		||||
import { RdDActorSheet } from "../../actor-sheet.js"
 | 
			
		||||
import { SYSTEM_RDD } from "../../constants.js";
 | 
			
		||||
import { Misc } from "../../misc.js";
 | 
			
		||||
import { EXPORT_CSV_SCRIPTARIUM, OptionsAvancees } from "../../settings/options-avancees.js";
 | 
			
		||||
import { ExportScriptarium } from "./export-scriptarium.js";
 | 
			
		||||
import { CATEGORIES_COMPETENCES, CATEGORIES_DRACONIC, Mapping } from "./mapping.js";
 | 
			
		||||
 | 
			
		||||
export class RdDActorExportSheet extends RdDActorSheet {
 | 
			
		||||
  static async init() {
 | 
			
		||||
    await loadTemplates([
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/arme.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessures.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-compteur.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee-compteur.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/competences.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/esquive.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/fatigue.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/protection.hbs",
 | 
			
		||||
      "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs",
 | 
			
		||||
    ])
 | 
			
		||||
    Actors.registerSheet(SYSTEM_RDD, RdDActorExportSheet, { types: ["personnage"], makeDefault: false, label: "Feuille simplifiée" })
 | 
			
		||||
  }
 | 
			
		||||
  static get defaultOptions() {
 | 
			
		||||
    return foundry.utils.mergeObject(RdDActorSheet.defaultOptions, {
 | 
			
		||||
      template: "systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/actor-encart-sheet.hbs",
 | 
			
		||||
      width: 550,
 | 
			
		||||
      showCompNiveauBase: false,
 | 
			
		||||
      vueArchetype: false,
 | 
			
		||||
    }, { inplace: false })
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  constructor(actor, options) {
 | 
			
		||||
    super(actor, options)
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  async getData() {
 | 
			
		||||
    const formData = await super.getData()
 | 
			
		||||
    // Add any structured, precomputed list of data
 | 
			
		||||
    formData.context = Mapping.prepareContext(this.actor)
 | 
			
		||||
    formData.export = this.getMappingValues(formData.context, this.actor)
 | 
			
		||||
    formData.competences = this.getCompetences(CATEGORIES_COMPETENCES)
 | 
			
		||||
    formData.draconic = this.getCompetences(CATEGORIES_DRACONIC)
 | 
			
		||||
    const legeres = this.actor.nbBlessuresLegeres()
 | 
			
		||||
    const graves = this.actor.nbBlessuresGraves()
 | 
			
		||||
    const critiques = this.actor.nbBlessuresCritiques()
 | 
			
		||||
    formData.etat = {
 | 
			
		||||
      surenc: this.actor.computeMalusSurEncombrement(),
 | 
			
		||||
      fatigue: {
 | 
			
		||||
        value: this.actor.getFatigueActuelle(),
 | 
			
		||||
        max: this.actor.getFatigueMax(),
 | 
			
		||||
        malus: this.actor.malusFatigue()
 | 
			
		||||
      },
 | 
			
		||||
      blessures: legeres + graves + critiques,
 | 
			
		||||
      blessure: [legeres > 0, legeres > 1, legeres > 2, legeres > 3, legeres > 4, graves > 0, graves > 1, critiques > 0],
 | 
			
		||||
    }
 | 
			
		||||
    formData.options.exportScriptarium = OptionsAvancees.isUsing(EXPORT_CSV_SCRIPTARIUM)
 | 
			
		||||
    return formData
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  getMappingValues(context, actor) {
 | 
			
		||||
    return Object.fromEntries(Mapping.getMapping().map(it => [it.column, {
 | 
			
		||||
      colName: it.colName ?? it.column,
 | 
			
		||||
      column: it.column,
 | 
			
		||||
      rollClass: it.rollClass,
 | 
			
		||||
      value: String(it.getter(actor, context))
 | 
			
		||||
    }]))
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  getCompetences(categories) {
 | 
			
		||||
    const competences = Mapping.getCompetencesCategorie(this.actor, categories)
 | 
			
		||||
    if (competences.length == 0) {
 | 
			
		||||
      return ''
 | 
			
		||||
    }
 | 
			
		||||
    const byCategories = Mapping.competencesByCategoriesByNiveau(competences, categories)
 | 
			
		||||
    const listByCategories = Object.values(byCategories)
 | 
			
		||||
      .map(it => it.competencesParNiveau)
 | 
			
		||||
      .map(byNiveau => {
 | 
			
		||||
        const niveaux = Object.keys(byNiveau).map(it => Number(it)).sort(Misc.ascending())
 | 
			
		||||
        if (niveaux.length == 0) {
 | 
			
		||||
          return undefined
 | 
			
		||||
        }
 | 
			
		||||
        const listCategorieByNiveau = niveaux.map(niveau => {
 | 
			
		||||
          const list = byNiveau[niveau].sort(Misc.ascending(it => it.name))
 | 
			
		||||
          return { niveau, list }
 | 
			
		||||
        })
 | 
			
		||||
        return Misc.concat(listCategorieByNiveau)
 | 
			
		||||
      }).filter(it => it != undefined)
 | 
			
		||||
 | 
			
		||||
    return Misc.concat(listByCategories)
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  activateListeners(html) {
 | 
			
		||||
    super.activateListeners(html);
 | 
			
		||||
 | 
			
		||||
    this.html.find('.click-blessure-remove').click(async event =>
 | 
			
		||||
      await this.actor.supprimerBlessure({
 | 
			
		||||
        gravite: this.html.find(event.currentTarget).data('gravite')
 | 
			
		||||
      })
 | 
			
		||||
    )
 | 
			
		||||
    this.html.find('.click-blessure-add').click(async event =>
 | 
			
		||||
      await this.actor.ajouterBlessure({
 | 
			
		||||
        gravite: this.html.find(event.currentTarget).data('gravite')
 | 
			
		||||
        // event.currentTarget.attributes['data-gravite'].value
 | 
			
		||||
      })
 | 
			
		||||
    )
 | 
			
		||||
    this.html.find('.button-export').click(async event => {
 | 
			
		||||
      ExportScriptarium.INSTANCE.exportActors([this.actor],
 | 
			
		||||
        `${this.actor.uuid}-${this.actor.name}`
 | 
			
		||||
      )
 | 
			
		||||
    })
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -12,14 +12,13 @@ export class ExportScriptarium {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  constructor() {
 | 
			
		||||
    this.mapping = Mapping.getMapping()
 | 
			
		||||
    Hooks.on("getActorDirectoryFolderContext", (actorDirectory, menus) => { ExportScriptarium.INSTANCE.onActorDirectoryMenu(actorDirectory, menus) })
 | 
			
		||||
    Hooks.on("getActorDirectoryEntryContext", (actorDirectory, menus) => { ExportScriptarium.INSTANCE.onActorDirectoryMenu(actorDirectory, menus) })
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onActorDirectoryMenu(actorDirectory, menus) {
 | 
			
		||||
    menus.push({
 | 
			
		||||
      name: 'Export Personnages',
 | 
			
		||||
      name: 'Export Personnages <i class="fa-regular fa-file-csv"></i>',
 | 
			
		||||
      icon: IMG_SCRIPTARIUM,
 | 
			
		||||
      condition: (target) => game.user.isGM &&
 | 
			
		||||
        OptionsAvancees.isUsing(EXPORT_CSV_SCRIPTARIUM) &&
 | 
			
		||||
@@ -59,12 +58,12 @@ export class ExportScriptarium {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  getHeaderLine() {
 | 
			
		||||
    return this.mapping.map(it => it.column)
 | 
			
		||||
    return Mapping.getColumns()
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  getActorLine(actor) {
 | 
			
		||||
    const context = Mapping.prepareContext(actor)
 | 
			
		||||
    return this.mapping.map(it => it.getter(actor, context))
 | 
			
		||||
    const values = Mapping.getValues(actor)
 | 
			
		||||
    return values
 | 
			
		||||
      .map(it => this.$escapeQuotes(it))
 | 
			
		||||
      .map(it => it.replaceAll("\n", " ").replaceAll("\r", ""))
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -6,15 +6,16 @@ import { ITEM_TYPES } from "../../item.js"
 | 
			
		||||
import { Misc } from "../../misc.js"
 | 
			
		||||
import { RdDTimestamp } from "../../time/rdd-timestamp.js"
 | 
			
		||||
import { RdDBonus } from "../../rdd-bonus.js"
 | 
			
		||||
import { TMRType } from "../../tmr-utility.js"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const CATEGORIES_COMPETENCES = [
 | 
			
		||||
export const CATEGORIES_COMPETENCES = [
 | 
			
		||||
  "generale",
 | 
			
		||||
  "particuliere",
 | 
			
		||||
  "specialisee",
 | 
			
		||||
  "connaissance",
 | 
			
		||||
]
 | 
			
		||||
const CATEGORIES_DRACONIC = [
 | 
			
		||||
export const CATEGORIES_DRACONIC = [
 | 
			
		||||
  "draconic",
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@@ -37,11 +38,11 @@ const NIVEAU_BASE = {
 | 
			
		||||
 | 
			
		||||
class ColumnMappingFactory {
 | 
			
		||||
  static createMappingArme(part, i) {
 | 
			
		||||
    return { column: `arme-${part}-${i}`, getter: (actor, context) => Mapping.getArme(actor, context, part, i) }
 | 
			
		||||
    return { column: `arme_${part}_${i}`, getter: (actor, context) => Mapping.getArme(actor, context, part, i) }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static createMappingSort(part, i) {
 | 
			
		||||
    return { column: `sort-${part}-${i}`, getter: (actor, context) => Mapping.getSort(actor, context, part, i) }
 | 
			
		||||
    return { column: `sort_${part}_${i}`, getter: (actor, context) => Mapping.getSort(actor, context, part, i) }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -51,38 +52,41 @@ const TABLEAU_ARMES = [...Array(NB_ARMES).keys()]
 | 
			
		||||
const TABLEAU_SORTS = [...Array(NB_SORTS).keys()]
 | 
			
		||||
 | 
			
		||||
const MAPPING_BASE = [
 | 
			
		||||
  { column: "ID", getter: (actor, context) => actor.id },
 | 
			
		||||
  { column: "ID", colName: 'ID', getter: (actor, context) => actor.id },
 | 
			
		||||
  { column: "name", getter: (actor, context) => actor.name },
 | 
			
		||||
  { column: "metier", getter: (actor, context) => actor.system.metier },
 | 
			
		||||
  //    { column: "biographie", getter: (actor, context) => actor.system.biographie },
 | 
			
		||||
  { column: "metier", colName: 'Métier', getter: (actor, context) => actor.system.metier },
 | 
			
		||||
  { column: "biographie", colName: 'Biographie', getter: (actor, context) => actor.system.biographie },
 | 
			
		||||
  { column: "taille", getter: (actor, context) => actor.system.carac.taille.value },
 | 
			
		||||
  { column: "apparence", getter: (actor, context) => actor.system.carac.apparence.value },
 | 
			
		||||
  { column: "constitution", getter: (actor, context) => actor.system.carac.constitution.value },
 | 
			
		||||
  { column: "force", getter: (actor, context) => actor.system.carac.force.value },
 | 
			
		||||
  { column: "agilite", getter: (actor, context) => actor.system.carac.agilite.value },
 | 
			
		||||
  { column: "dexterite", getter: (actor, context) => actor.system.carac.dexterite.value },
 | 
			
		||||
  { column: "vue", getter: (actor, context) => actor.system.carac.vue.value },
 | 
			
		||||
  { column: "ouie", getter: (actor, context) => actor.system.carac.ouie.value },
 | 
			
		||||
  { column: "odoratgout", getter: (actor, context) => actor.system.carac.odoratgout.value },
 | 
			
		||||
  { column: "volonte", getter: (actor, context) => actor.system.carac.volonte.value },
 | 
			
		||||
  { column: "intellect", getter: (actor, context) => actor.system.carac.intellect.value },
 | 
			
		||||
  { column: "empathie", getter: (actor, context) => actor.system.carac.empathie.value },
 | 
			
		||||
  { column: "reve", getter: (actor, context) => actor.system.carac.reve.value },
 | 
			
		||||
  { column: "chance", getter: (actor, context) => actor.system.carac.chance.value },
 | 
			
		||||
  { column: "melee", getter: (actor, context) => actor.system.carac.melee.value },
 | 
			
		||||
  { column: "tir", getter: (actor, context) => actor.system.carac.tir.value },
 | 
			
		||||
  { column: "lancer", getter: (actor, context) => actor.system.carac.lancer.value },
 | 
			
		||||
  { column: "derobee", getter: (actor, context) => actor.system.carac.derobee.value },
 | 
			
		||||
  { column: "apparence", rollClass: 'roll-carac', getter: (actor, context) => actor.system.carac.apparence.value },
 | 
			
		||||
  { column: "constitution", rollClass: 'roll-carac', getter: (actor, context) => actor.system.carac.constitution.value },
 | 
			
		||||
  { column: "force", rollClass: 'roll-carac', getter: (actor, context) => actor.system.carac.force.value },
 | 
			
		||||
  { column: "agilite", rollClass: 'roll-carac', colName: 'Agilité', getter: (actor, context) => actor.system.carac.agilite.value },
 | 
			
		||||
  { column: "dexterite", rollClass: 'roll-carac', colName: 'Dextérité', getter: (actor, context) => actor.system.carac.dexterite.value },
 | 
			
		||||
  { column: "vue", rollClass: 'roll-carac', getter: (actor, context) => actor.system.carac.vue.value },
 | 
			
		||||
  { column: "ouie", rollClass: 'roll-carac', colName: 'Ouïe', getter: (actor, context) => actor.system.carac.ouie.value },
 | 
			
		||||
  { column: "odoratgout", rollClass: 'roll-carac', colName: 'Odo-goût', getter: (actor, context) => actor.system.carac.odoratgout.value },
 | 
			
		||||
  { column: "volonte", rollClass: 'roll-carac', colName: 'Volonté', getter: (actor, context) => actor.system.carac.volonte.value },
 | 
			
		||||
  { column: "intellect", rollClass: 'roll-carac', getter: (actor, context) => actor.system.carac.intellect.value },
 | 
			
		||||
  { column: "empathie", rollClass: 'roll-carac', getter: (actor, context) => actor.system.carac.empathie.value },
 | 
			
		||||
  { column: "reve", rollClass: 'roll-carac', colName: 'Rêve', getter: (actor, context) => actor.system.carac.reve.value },
 | 
			
		||||
  { column: "chance", rollClass: 'roll-carac', getter: (actor, context) => actor.system.carac.chance.value },
 | 
			
		||||
  { column: "melee", rollClass: 'roll-carac', colName: 'Mêlée', getter: (actor, context) => actor.system.carac.melee.value },
 | 
			
		||||
  { column: "tir", rollClass: 'roll-carac', getter: (actor, context) => actor.system.carac.tir.value },
 | 
			
		||||
  { column: "lancer", rollClass: 'roll-carac', getter: (actor, context) => actor.system.carac.lancer.value },
 | 
			
		||||
  { column: "derobee", rollClass: 'roll-carac', colName: 'Dérobée', getter: (actor, context) => actor.system.carac.derobee.value },
 | 
			
		||||
  { column: "vie", getter: (actor, context) => actor.system.sante.vie.max },
 | 
			
		||||
  { column: "plusdom", getter: (actor, context) => actor.system.attributs.plusdom.value },
 | 
			
		||||
  { column: "protectionnaturelle", getter: (actor, context) => actor.system.attributs.protection.value },
 | 
			
		||||
  { column: "endurance", getter: (actor, context) => actor.system.sante.endurance.max },
 | 
			
		||||
  { column: "plusdom", colName: '+dom', getter: (actor, context) => actor.system.attributs.plusdom.value },
 | 
			
		||||
  { column: "protectionnaturelle", colName: 'Protection naturelle', getter: (actor, context) => actor.system.attributs.protection.value > 0 ? actor.system.attributs.protection.value : '' },
 | 
			
		||||
  { column: "description", getter: (actor, context) => Mapping.getDescription(actor) },
 | 
			
		||||
  { column: "armure", getter: (actor, context) => Mapping.getArmure(actor, context) },
 | 
			
		||||
  { column: "protection", getter: (actor, context) => Mapping.getProtectionArmure(actor, context) },
 | 
			
		||||
  { column: "malus-armure", getter: (actor, context) => Mapping.getMalusArmure(actor, context) },
 | 
			
		||||
  { column: "protectionarmure", colName: 'Protection', getter: (actor, context) => Mapping.getProtectionArmure(actor, context) },
 | 
			
		||||
  { column: "malus_armure", getter: (actor, context) => Mapping.getMalusArmure(actor, context) },
 | 
			
		||||
  { column: "reve_actuel", rollClass: 'roll-reve-actuel', colName: 'Rêve actuel', getter: (actor, context) => actor.system.reve.reve.value },
 | 
			
		||||
  { column: "vie_actuel", rollClass: 'jet-vie', getter: (actor, context) => actor.system.sante.vie.value },
 | 
			
		||||
  { column: "endurance_actuel", rollClass: 'jet-vie', getter: (actor, context) => actor.system.sante.endurance.value },
 | 
			
		||||
  { column: "esquive", getter: (actor, context) => Mapping.getEsquive(context) },
 | 
			
		||||
  { column: "esquive-armure", getter: (actor, context) => Mapping.getEsquiveArmure(context) },
 | 
			
		||||
  { column: "esquive_armure", getter: (actor, context) => Mapping.getEsquiveArmure(context) },
 | 
			
		||||
  { column: "competences", getter: (actor, context) => Mapping.getCompetences(actor, CATEGORIES_COMPETENCES) },
 | 
			
		||||
  { column: "draconic", getter: (actor, context) => Mapping.getCompetences(actor, CATEGORIES_DRACONIC) },
 | 
			
		||||
]
 | 
			
		||||
@@ -104,6 +108,27 @@ export class Mapping {
 | 
			
		||||
    return MAPPING
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static getColumns() {
 | 
			
		||||
    return MAPPING.map(it => it.column)
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static getValues(actor) {
 | 
			
		||||
    const context = Mapping.prepareContext(actor)
 | 
			
		||||
    return MAPPING.map(it => it.getter(actor, context))
 | 
			
		||||
  }
 | 
			
		||||
  static getAsObject(actor) {
 | 
			
		||||
    const context = Mapping.prepareContext(actor)
 | 
			
		||||
    return Object.fromEntries(MAPPING.map(it => [it.column, {
 | 
			
		||||
      colName: it.colName ?? it.column,
 | 
			
		||||
      value: it.getter(actor, context)
 | 
			
		||||
    }]))
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static getValues(actor) {
 | 
			
		||||
    const context = Mapping.prepareContext(actor)
 | 
			
		||||
    return MAPPING.map(it => it.getter(actor, context))
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static prepareContext(actor) {
 | 
			
		||||
    return {
 | 
			
		||||
      armes: Mapping.prepareArmes(actor),
 | 
			
		||||
@@ -117,11 +142,11 @@ export class Mapping {
 | 
			
		||||
    const armes = actor.items.filter(it => it.type == ITEM_TYPES.arme)
 | 
			
		||||
    return armes.map(arme =>
 | 
			
		||||
      [
 | 
			
		||||
        arme.system.tir != "" ? Mapping.prepareArme(actor, arme, 'tir') : undefined,
 | 
			
		||||
        arme.system.lancer = "" ? Mapping.prepareArme(actor, arme, 'lancer') : undefined,
 | 
			
		||||
        arme.system.unemain ? Mapping.prepareArme(actor, arme, 'unemain') : undefined,
 | 
			
		||||
        arme.system.deuxmains ? Mapping.prepareArme(actor, arme, 'deuxmains') : undefined,
 | 
			
		||||
        !(arme.system.unemain || arme.system.deuxmains) ? Mapping.prepareArme(actor, arme, 'competence') : undefined
 | 
			
		||||
        !(arme.system.unemain || arme.system.deuxmains) ? Mapping.prepareArme(actor, arme, 'competence') : undefined,
 | 
			
		||||
        arme.system.lancer != "" ? Mapping.prepareArme(actor, arme, 'lancer') : undefined,
 | 
			
		||||
        arme.system.tir != "" ? Mapping.prepareArme(actor, arme, 'tir') : undefined
 | 
			
		||||
      ]
 | 
			
		||||
        .filter(it => it != undefined)
 | 
			
		||||
    ).reduce((a, b) => a.concat(b), [])
 | 
			
		||||
@@ -135,14 +160,27 @@ export class Mapping {
 | 
			
		||||
    }
 | 
			
		||||
    const dmgArme = RdDItemArme.dommagesReels(arme, maniement)
 | 
			
		||||
    const dommages = dmgArme + RdDBonus.bonusDmg(actor, maniement, dmgArme)
 | 
			
		||||
    const categorie = Mapping.complementCategorie(arme, maniement)
 | 
			
		||||
    return {
 | 
			
		||||
      name: arme.name,
 | 
			
		||||
      name: arme.name + categorie,
 | 
			
		||||
      niveau: Misc.toSignedString(competence.system.niveau),
 | 
			
		||||
      init: Mapping.calculBaseInit(actor, competence.system.categorie) + competence.system.niveau,
 | 
			
		||||
      dommages: Misc.toSignedString(dommages)
 | 
			
		||||
      dommages: Misc.toSignedString(dommages),
 | 
			
		||||
      competence: competence,
 | 
			
		||||
      arme: arme
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static complementCategorie(arme, maniement) {
 | 
			
		||||
    switch (maniement) {
 | 
			
		||||
      case 'unemain': return (arme.system.deuxmains) ? ' 1 main' : (arme.system.lancer||arme.system.tir) ? ' mêlée': '' 
 | 
			
		||||
      case 'deuxmains': return (arme.system.unemain) ? ' 2 mains' : (arme.system.lancer||arme.system.tir) ? ' mêlée': '' 
 | 
			
		||||
      case 'lancer': return (arme.system.unemain || arme.system.deuxmains || arme.system.tir) ? ' jet' : ''
 | 
			
		||||
      case 'tir': return (arme.system.unemain || arme.system.deuxmains || arme.system.lancer) ? ' tir' : ''
 | 
			
		||||
    }
 | 
			
		||||
    return '' 
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static calculBaseInit(actor, categorie) {
 | 
			
		||||
    const mapping = MAPPING_BASE.find(it => it.column == categorie)
 | 
			
		||||
    if (mapping) {
 | 
			
		||||
@@ -190,12 +228,16 @@ export class Mapping {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static prepareSorts(actor) {
 | 
			
		||||
    return actor.itemTypes[ITEM_TYPES.sort].map(it => Mapping.prepareSort(it))
 | 
			
		||||
    const codeVoies = Mapping.getCompetencesCategorie(actor, CATEGORIES_DRACONIC)
 | 
			
		||||
      .map(it => RdDItemSort.getVoieCode(it))
 | 
			
		||||
 | 
			
		||||
    return actor.itemTypes[ITEM_TYPES.sort].map(it => Mapping.prepareSort(it, codeVoies))
 | 
			
		||||
      .sort(Misc.ascending(it => `${it.voie} : ${it.description}`))
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static prepareSort(sort) {
 | 
			
		||||
  static prepareSort(sort, voies) {
 | 
			
		||||
    return {
 | 
			
		||||
      voie: RdDItemSort.getCodeDraconic(sort),
 | 
			
		||||
      voie: RdDItemSort.getCodeDraconic(sort, voies),
 | 
			
		||||
      description: Mapping.descriptionSort(sort),
 | 
			
		||||
      bonus: Mapping.bonusCase(sort)
 | 
			
		||||
    }
 | 
			
		||||
@@ -203,8 +245,18 @@ export class Mapping {
 | 
			
		||||
 | 
			
		||||
  static descriptionSort(sort) {
 | 
			
		||||
    const ptSeuil = Array(sort.system.coutseuil).map(it => '*')
 | 
			
		||||
    const caseTMR = sort.system.caseTMRspeciale.length > 0 ? sort.system.caseTMRspeciale : sort.system.caseTMR
 | 
			
		||||
    return `${sort.name}${ptSeuil} (${caseTMR}) R${sort.system.difficulte} r${sort.system.ptreve}`
 | 
			
		||||
    const caseTMR = sort.system.caseTMRspeciale.length > 0 ? Mapping.toVar(sort.system.caseTMRspeciale) : Misc.upperFirst(TMRType[sort.system.caseTMR].name)
 | 
			
		||||
    const ptreve = Mapping.addSpaceToNonNumeric(sort.system.ptreve)
 | 
			
		||||
    const diff = Mapping.addSpaceToNonNumeric(sort.system.difficulte)
 | 
			
		||||
    return `${sort.name}${ptSeuil} (${caseTMR}) R${diff} r${ptreve}`
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static addSpaceToNonNumeric(value) {
 | 
			
		||||
    return Number.isNumeric(value) ? value : ' ' + Mapping.toVar(value)
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static toVar(value) {
 | 
			
		||||
    return value.replace('variable', 'var')
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static bonusCase(sort) {
 | 
			
		||||
@@ -227,7 +279,7 @@ export class Mapping {
 | 
			
		||||
    const poids = actor.system.poids
 | 
			
		||||
    const cheveux = actor.system.cheveux ? `cheveux ${actor.system.cheveux}` : undefined
 | 
			
		||||
    const yeux = actor.system.yeux ? `yeux ${actor.system.yeux}` : undefined
 | 
			
		||||
    const beaute = actor.system.beaute ? `Beauté ${actor.system.beaute}` : undefined
 | 
			
		||||
    const beaute = actor.system.beaute ? `beauté ${actor.system.beaute}` : undefined
 | 
			
		||||
    const list = [race, hn, age, taille, poids, cheveux, yeux, beaute]
 | 
			
		||||
    return Misc.join(list.filter(it => it), ', ')
 | 
			
		||||
  }
 | 
			
		||||
@@ -237,7 +289,14 @@ export class Mapping {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static getProtectionArmure(actor, context) {
 | 
			
		||||
    return Number(context?.armure?.protection ?? 0) + Number(actor.system.attributs.protection.value)
 | 
			
		||||
    const naturelle = Number(actor.system.attributs.protection.value)
 | 
			
		||||
    if (context?.armure?.protection == undefined) {
 | 
			
		||||
      return naturelle
 | 
			
		||||
    }
 | 
			
		||||
    if (Number.isNumeric(context?.armure?.protection)) {
 | 
			
		||||
      return Number(context?.armure?.protection ?? 0) + naturelle
 | 
			
		||||
    }
 | 
			
		||||
    return context?.armure.protection + (naturelle > 0 ? `+${naturelle}` : '')
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static getMalusArmure(actor, context) {
 | 
			
		||||
@@ -263,8 +322,8 @@ export class Mapping {
 | 
			
		||||
    if (competences.length == 0) {
 | 
			
		||||
      return ''
 | 
			
		||||
    }
 | 
			
		||||
    const byCartegories = Mapping.competencesByCategoriesByNiveau(competences, categories)
 | 
			
		||||
    const txtByCategories = Object.values(byCartegories)
 | 
			
		||||
    const byCategories = Mapping.competencesByCategoriesByNiveau(competences, categories)
 | 
			
		||||
    const txtByCategories = Object.values(byCategories)
 | 
			
		||||
      .map(it => it.competencesParNiveau)
 | 
			
		||||
      .map(byNiveau => {
 | 
			
		||||
        const niveaux = Object.keys(byNiveau).map(it => Number(it)).sort(Misc.ascending())
 | 
			
		||||
 
 | 
			
		||||
@@ -25,6 +25,11 @@ const RANDOM_VALUES = {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class AppPersonnageAleatoire extends FormApplication {
 | 
			
		||||
  static preloadHandlebars() {
 | 
			
		||||
    loadTemplates([
 | 
			
		||||
      'systems/foundryvtt-reve-de-dragon/templates/actor/random/champ-aleatoire.hbs',
 | 
			
		||||
    ])
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static get defaultOptions() {
 | 
			
		||||
    return foundry.utils.mergeObject(super.defaultOptions, {
 | 
			
		||||
 
 | 
			
		||||
@@ -5,12 +5,12 @@ import { Misc } from "./misc.js";
 | 
			
		||||
import { TMRUtility } from "./tmr-utility.js";
 | 
			
		||||
 | 
			
		||||
const VOIES_DRACONIC = [
 | 
			
		||||
  { code: 'O', label: "Voie d'Oniros", short: 'Oniros' },
 | 
			
		||||
  { code: 'H', label: "Voie d'Hypnos", short: 'Hypnos' },
 | 
			
		||||
  { code: 'N', label: "Voie de Narcos", short: 'Narcos' },
 | 
			
		||||
  { code: 'T', label: "Voie de Thanatos", short: 'Thanatos' },
 | 
			
		||||
  { code: 'O/H/N/T', label: "Oniros/Hypnos/Narcos/Thanatos", short: 'Oniros/Hypnos/Narcos/Thanatos' },
 | 
			
		||||
  { code: 'O/H/N', label: "Oniros/Hypnos/Narcos" }
 | 
			
		||||
  { code: 'O', label: "Voie d'Oniros", short: 'Oniros', ordre: 'a' },
 | 
			
		||||
  { code: 'H', label: "Voie d'Hypnos", short: 'Hypnos', ordre: 'b' },
 | 
			
		||||
  { code: 'N', label: "Voie de Narcos", short: 'Narcos', ordre: 'c' },
 | 
			
		||||
  { code: 'T', label: "Voie de Thanatos", short: 'Thanatos', ordre: 'd' },
 | 
			
		||||
  { code: 'O/H/N/T', label: "Oniros/Hypnos/Narcos/Thanatos", short: 'Oniros/Hypnos/Narcos/Thanatos', ordre: 'e' },
 | 
			
		||||
  { code: 'O/H/N', label: "Oniros/Hypnos/Narcos", short: "Oniros/Hypnos/Narcos", ordre: 'f' }
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
/* -------------------------------------------- */
 | 
			
		||||
@@ -27,17 +27,33 @@ export class RdDItemSort extends Item {
 | 
			
		||||
    return [RdDItemCompetence.getVoieDraconic(draconicList, sort.system.draconic)];
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static getCodeDraconic(sort) {
 | 
			
		||||
  static getOrdreCode(code) {
 | 
			
		||||
    return (VOIES_DRACONIC.find(it => it.code == code)?.ordre ?? '?')
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static getVoieCode(voie) {
 | 
			
		||||
    return VOIES_DRACONIC.find(it => voie.name.includes(it.short))?.code ?? '?'
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static getCodeDraconic(sort, voies = ['O', 'H', 'N', 'T']) {
 | 
			
		||||
    switch (Grammar.toLowerCaseNoAccent(sort.name)) {
 | 
			
		||||
      case "lecture d'aura":
 | 
			
		||||
      case "detection d'aura":
 | 
			
		||||
        return 'O/H/N/T'
 | 
			
		||||
        return RdDItemSort.$voiesConnues('O/H/N/T', voies)
 | 
			
		||||
      case "annulation de magie":
 | 
			
		||||
        return 'O/H/N'
 | 
			
		||||
        return RdDItemSort.$voiesConnues('O/H/N', voies)
 | 
			
		||||
    }
 | 
			
		||||
    const voie = VOIES_DRACONIC.find(it => it.label.includes(sort.system.draconic))
 | 
			
		||||
    return voie?.code ?? sort.system.draconic
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  static $voiesConnues(voiesSort, voies) {
 | 
			
		||||
    const codes = voies.filter(it => voiesSort.includes(it))
 | 
			
		||||
      .sort(Misc.ascending(it => RdDItemSort.getOrdreCode(it)))
 | 
			
		||||
    return Misc.join(codes ?? [''], '/');
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  static isDifficulteVariable(sort) {
 | 
			
		||||
    return sort && (sort.system.difficulte.toLowerCase() == "variable");
 | 
			
		||||
@@ -67,7 +83,7 @@ export class RdDItemSort extends Item {
 | 
			
		||||
  static buildBonusCaseList(bonuscase, newCase) {
 | 
			
		||||
    const list = RdDItemSort.bonuscaseStringToList(bonuscase)
 | 
			
		||||
    if (newCase) {
 | 
			
		||||
       list.push({ case: "Nouvelle", bonus: 0 })
 | 
			
		||||
      list.push({ case: "Nouvelle", bonus: 0 })
 | 
			
		||||
    }
 | 
			
		||||
    return list;
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -64,9 +64,10 @@ import { RdDItemArmure } from "./item/armure.js"
 | 
			
		||||
import { AutoAdjustDarkness as AutoAdjustDarkness } from "./time/auto-adjust-darkness.js"
 | 
			
		||||
import { RdDCreature } from "./actor/creature.js"
 | 
			
		||||
import { RdDTMRDialog } from "./rdd-tmr-dialog.js"
 | 
			
		||||
//import { RdDActorExportSheet } from "./actor/actor-export-sheet.js"
 | 
			
		||||
import { OptionsAvancees } from "./settings/options-avancees.js"
 | 
			
		||||
import { ExportScriptarium } from "./actor/export-scriptarium/export-scriptarium.js"
 | 
			
		||||
import { AppPersonnageAleatoire } from "./actor/random/app-personnage-aleatoire.js"
 | 
			
		||||
import { RdDActorExportSheet } from "./actor/export-scriptarium/actor-encart-sheet.js"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * RdD system
 | 
			
		||||
@@ -119,6 +120,7 @@ export class SystemReveDeDragon {
 | 
			
		||||
 | 
			
		||||
    // preload handlebars templates
 | 
			
		||||
    RdDUtility.preloadHandlebarsTemplates()
 | 
			
		||||
    AppPersonnageAleatoire.preloadHandlebars()
 | 
			
		||||
 | 
			
		||||
    /* -------------------------------------------- */
 | 
			
		||||
    this.initSystemSettings()
 | 
			
		||||
@@ -158,12 +160,12 @@ export class SystemReveDeDragon {
 | 
			
		||||
    // Register sheet application classes
 | 
			
		||||
    Actors.unregisterSheet("core", ActorSheet)
 | 
			
		||||
    Actors.registerSheet(SYSTEM_RDD, RdDCommerceSheet, { types: ["commerce"], makeDefault: true })
 | 
			
		||||
    //Actors.registerSheet(SYSTEM_RDD, RdDActorExportSheet, { types: ["personnage"], makeDefault: false })
 | 
			
		||||
    Actors.registerSheet(SYSTEM_RDD, RdDActorSheet, { types: ["personnage"], makeDefault: true })
 | 
			
		||||
    Actors.registerSheet(SYSTEM_RDD, RdDCreatureSheet, { types: ["creature"], makeDefault: true })
 | 
			
		||||
    Actors.registerSheet(SYSTEM_RDD, RdDActorVehiculeSheet, { types: ["vehicule"], makeDefault: true })
 | 
			
		||||
    Actors.registerSheet(SYSTEM_RDD, RdDActorEntiteSheet, { types: ["entite"], makeDefault: true })
 | 
			
		||||
    Items.unregisterSheet("core", ItemSheet)
 | 
			
		||||
    await RdDActorExportSheet.init()
 | 
			
		||||
 | 
			
		||||
    RdDItemSheet.register(RdDSigneDraconiqueItemSheet)
 | 
			
		||||
    RdDItemSheet.register(RdDRencontreItemSheet)
 | 
			
		||||
 
 | 
			
		||||
@@ -169,7 +169,6 @@ export class RdDUtility {
 | 
			
		||||
      'systems/foundryvtt-reve-de-dragon/templates/actor/liens-vehicules.hbs',
 | 
			
		||||
      'systems/foundryvtt-reve-de-dragon/templates/actor/commerce-inventaire.html',
 | 
			
		||||
      'systems/foundryvtt-reve-de-dragon/templates/actor/commerce-inventaire-item.html',
 | 
			
		||||
      'systems/foundryvtt-reve-de-dragon/templates/actor/random/champ-aleatoire.hbs',
 | 
			
		||||
      //Items
 | 
			
		||||
      'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete-script.hbs',
 | 
			
		||||
      'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs',
 | 
			
		||||
@@ -293,6 +292,7 @@ export class RdDUtility {
 | 
			
		||||
 | 
			
		||||
    Handlebars.registerHelper('array-includes', (array, value) => array.includes(value));
 | 
			
		||||
    Handlebars.registerHelper('min', (...args) => Math.min(...args.slice(0, -1)));
 | 
			
		||||
    Handlebars.registerHelper('isLastIndex', (index, list) => index+1 >= list.length);
 | 
			
		||||
    Handlebars.registerHelper('regle-optionnelle', (option) => ReglesOptionnelles.isUsing(option));
 | 
			
		||||
    Handlebars.registerHelper('trier', list => list.sort((a, b) => a.name.localeCompare(b.name)));
 | 
			
		||||
    Handlebars.registerHelper('filtreTriCompetences', competences => RdDItemCompetence.triVisible(competences));
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@ import { Misc } from "../misc.js"
 | 
			
		||||
export const EXPORT_CSV_SCRIPTARIUM = 'export-csv-scriptarium'
 | 
			
		||||
 | 
			
		||||
const OPTIONS_AVANCEES = [
 | 
			
		||||
  { group: 'Menus', name: EXPORT_CSV_SCRIPTARIUM, descr: "Proposer le menu d'export csv Scriptarium (raffraichissement requis)" },
 | 
			
		||||
  { group: 'Menus', name: EXPORT_CSV_SCRIPTARIUM, descr: "Proposer le menu d'export csv Scriptarium" },
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
export class OptionsAvancees extends FormApplication {
 | 
			
		||||
 
 | 
			
		||||
@@ -326,7 +326,7 @@ table {border: 1px solid #7a7971;}
 | 
			
		||||
  display: grid;
 | 
			
		||||
  grid-column: span 2 / span 2;
 | 
			
		||||
  grid-template-columns: repeat(2, minmax(0, 1fr));
 | 
			
		||||
  gap: 10px;
 | 
			
		||||
  gap: 30px;
 | 
			
		||||
  margin: 10px 0;
 | 
			
		||||
  padding: 0;
 | 
			
		||||
}
 | 
			
		||||
@@ -411,6 +411,11 @@ table {border: 1px solid #7a7971;}
 | 
			
		||||
  text-align: left;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.flex-group-top {
 | 
			
		||||
  vertical-align: top;
 | 
			
		||||
  align-self: start;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.flex-group-right {
 | 
			
		||||
  -webkit-box-pack: end;
 | 
			
		||||
  -ms-flex-pack: end;
 | 
			
		||||
@@ -675,6 +680,7 @@ input:is(.blessure-premiers_soins, .blessure-soins_complets) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.carac-label {
 | 
			
		||||
  font-weight: bold;
 | 
			
		||||
  flex-basis: 40%;
 | 
			
		||||
}
 | 
			
		||||
.rdd.sheet .window-content .sheet-body .carac-list .caracteristique > .utiliser-attribut {
 | 
			
		||||
@@ -1183,9 +1189,6 @@ ul.chat-list li:nth-child(odd) {
 | 
			
		||||
  padding: 0.5rem;
 | 
			
		||||
  cursor: pointer;
 | 
			
		||||
}
 | 
			
		||||
.carac-label {
 | 
			
		||||
  font-weight: bold;
 | 
			
		||||
}
 | 
			
		||||
.list-item {
 | 
			
		||||
  margin: 0.1rem;
 | 
			
		||||
  box-shadow: inset 0px 0px 1px #00000096;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
{
 | 
			
		||||
  "id": "foundryvtt-reve-de-dragon",
 | 
			
		||||
  "title": "Rêve de Dragon",
 | 
			
		||||
  "version": "12.0.11",
 | 
			
		||||
  "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-12.0.11.zip",
 | 
			
		||||
  "version": "12.0.14",
 | 
			
		||||
  "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-12.0.14.zip",
 | 
			
		||||
  "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v11/system.json",
 | 
			
		||||
  "changelog": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/branch/v11/changelog.md",
 | 
			
		||||
  "compatibility": {
 | 
			
		||||
 
 | 
			
		||||
@@ -9,9 +9,9 @@
 | 
			
		||||
          <div class="flexrow">
 | 
			
		||||
            <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
 | 
			
		||||
            <div class="header-buttons">
 | 
			
		||||
              <span class="encaisser-direct"><a><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a></span>
 | 
			
		||||
              <span><a class="button-encaissement"><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a></span>
 | 
			
		||||
              {{#if @root.options.isGM}}
 | 
			
		||||
              <span class="remise-a-neuf"><a><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a></span>
 | 
			
		||||
              <span><a class="button-remise-a-neuf"><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a></span>
 | 
			
		||||
              {{/if}}
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -9,9 +9,9 @@
 | 
			
		||||
          <div class="flexrow">
 | 
			
		||||
            <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
 | 
			
		||||
            <div class="header-buttons">
 | 
			
		||||
              <span class="encaisser-direct"><a><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a></span>
 | 
			
		||||
              <span><a class="button-encaissement"><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a></span>
 | 
			
		||||
              {{#if @root.options.isGM}}
 | 
			
		||||
              <span class="remise-a-neuf"><a><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a></span>
 | 
			
		||||
              <span><a class="button-remise-a-neuf"><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a></span>
 | 
			
		||||
              {{/if}}
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
        <label class="carac-xp"/>
 | 
			
		||||
      {{else}}
 | 
			
		||||
        {{#if carac.derivee}}
 | 
			
		||||
          <span class="carac-label" name="system.carac.{{key}}.label"><a name={{key}}>{{carac.label}}</a></span>
 | 
			
		||||
          <span class="carac-label" name="system.carac.{{key}}.label"><a class="roll-carac" data-carac-name={{key}}>{{carac.label}}</a></span>
 | 
			
		||||
          <label class="competence-value">{{carac.value}}</label>
 | 
			
		||||
          <label class="carac-xp"/>
 | 
			
		||||
        {{else}}
 | 
			
		||||
@@ -22,7 +22,7 @@
 | 
			
		||||
              </a>
 | 
			
		||||
            </span>
 | 
			
		||||
          {{else}}
 | 
			
		||||
            <span class="carac-label tooltip" name="system.carac.{{key}}.label"><a name={{key}}>{{carac.label}}</a></span>
 | 
			
		||||
            <span class="carac-label tooltip" name="system.carac.{{key}}.label"><a class="roll-carac" data-carac-name={{key}}>{{carac.label}}</a></span>
 | 
			
		||||
          {{/if}}
 | 
			
		||||
          <input class="carac-value" type="text" name="system.carac.{{key}}.value" value="{{carac.value}}" data-dtype="{{carac.type}}" {{#unless @root.options.vueDetaillee}}disabled{{/unless}} />
 | 
			
		||||
          <span class="carac-xp tooltip">
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
      data-competence-name="{{arme.system.competence}}" 
 | 
			
		||||
      data-tooltip="{{arme.name}}: niveau {{plusMoins arme.system.niveau}}">
 | 
			
		||||
    <span class="arme-label">
 | 
			
		||||
      <a>
 | 
			
		||||
      <a class="roll-arme">
 | 
			
		||||
        {{#if arme.img}}
 | 
			
		||||
        <img class="sheet-competence-img" src="{{arme.img}}" data-tooltip="{{arme.name}}"/>
 | 
			
		||||
        {{/if}}
 | 
			
		||||
@@ -32,7 +32,7 @@
 | 
			
		||||
  <li class="item flexrow list-item" data-item-id="{{esq._id}}"
 | 
			
		||||
    data-tooltip="{{esq.name}}: niveau {{plusMoins esq.system.niveau}}">
 | 
			
		||||
    <span class="competence-label">
 | 
			
		||||
      <a class="competence-label" name="{{esq.name}}">
 | 
			
		||||
      <a class="roll-competence" name="{{esq.name}}">
 | 
			
		||||
        <img class="sheet-competence-img" src="{{esq.img}}" />
 | 
			
		||||
        <span>{{esq.name}}</span>
 | 
			
		||||
      </a>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<ol class="item-list alterne-list">
 | 
			
		||||
  {{#each (trier competences) as |comp key|}}
 | 
			
		||||
  <li class="item flexrow list-item" data-item-id="{{comp._id}}">
 | 
			
		||||
    <a class="competence-label">
 | 
			
		||||
    <a class="competence-label roll-competence">
 | 
			
		||||
      <img class="sheet-competence-img" src="{{comp.img}}" data-tooltip="{{comp.name}}"/>
 | 
			
		||||
      <span>{{comp.name}}</span>
 | 
			
		||||
    </a>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{{#unless system.isHidden}}
 | 
			
		||||
  <li class="item flexrow list-item {{#if system.isLevelUp}}xp-level-up tooltip{{/if}}" data-item-id="{{_id}}">
 | 
			
		||||
    <a class="competence-label" name="{{name}}" data-tooltip="Niveau {{plusMoins system.niveau}} en {{name}}">
 | 
			
		||||
    <a class="competence-label roll-competence" name="{{name}}" data-tooltip="Niveau {{plusMoins system.niveau}} en {{name}}">
 | 
			
		||||
      <img class="sheet-competence-img" src="{{img}}"/>
 | 
			
		||||
      <span>{{name}}</span>
 | 
			
		||||
    </a>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										129
									
								
								templates/actor/export-scriptarium/actor-encart-sheet.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										129
									
								
								templates/actor/export-scriptarium/actor-encart-sheet.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,129 @@
 | 
			
		||||
<form class="{{cssClass}}" autocomplete="off" >
 | 
			
		||||
  <section class="sheet-header">
 | 
			
		||||
    <div class="flexrow">
 | 
			
		||||
      <div class="flex-group-left flex-grow-0-5">
 | 
			
		||||
        <h1 class="charname">{{name}}
 | 
			
		||||
        </h1>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="flex-group-right flex-grow-3">
 | 
			
		||||
        {{#if system.attributs.hautrevant.value}}
 | 
			
		||||
        <a class="button-tmr" data-tooltip="Montée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
 | 
			
		||||
          <img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-normal.svg"/>
 | 
			
		||||
        </a>
 | 
			
		||||
        <a class="button-tmr-rapide" data-tooltip="Montée accélérée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
 | 
			
		||||
          <img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-rapide.svg"/>
 | 
			
		||||
        </a>
 | 
			
		||||
        <a class="button-tmr-visu" data-tooltip="Regarder les Terres Médianes">
 | 
			
		||||
          <img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-view.svg"/>
 | 
			
		||||
        </a>
 | 
			
		||||
        {{/if}}
 | 
			
		||||
        <a class="button-appel-chance"><img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/appel-chance.svg" data-tooltip="Appel à la chance"/></a>
 | 
			
		||||
        <a class="button-encaissement"><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a>
 | 
			
		||||
        <a class="button-ethylisme"><img class="button-img" src="icons/svg/tankard.svg" data-tooltip="Boire"/></a>
 | 
			
		||||
        <a class="button-repos"><img class="button-img" src="icons/svg/sleep.svg" data-tooltip="Se reposer"/></a>
 | 
			
		||||
        {{#if @root.options.isGM}}
 | 
			
		||||
        <a class="button-remise-a-neuf"><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a>
 | 
			
		||||
        {{/if}}
 | 
			
		||||
        {{#if options.exportScriptarium}}
 | 
			
		||||
        <a class="button-export">
 | 
			
		||||
          <img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/scriptarium.svg" data-tooltip="Export format Scriptarium"/>
 | 
			
		||||
        </a>
 | 
			
		||||
        {{/if}}
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </section>
 | 
			
		||||
  <section class="sheet-body" style=:"margin-bottom: 3rem;">
 | 
			
		||||
    <div>
 | 
			
		||||
      <strong>{{export.name.value}}</strong>{{#if export.description.value}}, {{export.description.value}}{{/if}}
 | 
			
		||||
      </div>
 | 
			
		||||
    <hr>
 | 
			
		||||
    <div class="grid-2col">
 | 
			
		||||
      <div class="flexcol flex-group-top">
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.taille}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.apparence}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.constitution}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.force}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.agilite}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.dexterite}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.vue}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.ouie}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.odoratgout}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.volonte}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.empathie}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.intellect}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-compteur.hbs" carac=export.reve actuel=export.reve_actuel button-name='ptreve-actuel'}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac.hbs" carac=export.chance}}
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="flexcol flex-group-top">
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.melee}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.tir}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.lancer}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.derobee}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee-compteur.hbs" carac=export.vie actuel=export.vie_actuel}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee-compteur.hbs" carac=export.endurance actuel=export.endurance_actuel}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/fatigue.hbs" }}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=export.plusdom}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/protection.hbs" export}}
 | 
			
		||||
        <div class="flexrow"> </div>
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessures.hbs" }}
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  <hr>
 | 
			
		||||
    <div>
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/arme.hbs" name=' ' niveau='Niv' init='Init' dommages='+dom'}}
 | 
			
		||||
      {{#each context.armes as |arme|}}
 | 
			
		||||
        {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/arme.hbs"
 | 
			
		||||
          name=arme.name niveau=arme.niveau init=arme.init dommages=arme.dommages
 | 
			
		||||
          arme=arme.arme competence=arme.competence
 | 
			
		||||
        }}
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/esquive.hbs" name='Esquive' niveau=export.esquive.value}}
 | 
			
		||||
      {{#if (gt export.malue_armure.value 0)}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/esquive.hbs" name='Esquive (avec armure)' niveau=export.esquive_armure.value}}
 | 
			
		||||
      {{/if}}
 | 
			
		||||
    </div>
 | 
			
		||||
  <hr>
 | 
			
		||||
    <div>
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/competences.hbs" competences=competences}}
 | 
			
		||||
    </div>
 | 
			
		||||
  <hr>
 | 
			
		||||
    <div>
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/competences.hbs" competences=draconic }}
 | 
			
		||||
    </div>
 | 
			
		||||
    <hr>
 | 
			
		||||
    <div>
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_0.value description=export.sort_description_0.value bonus=export.sort_bonus_0.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_1.value description=export.sort_description_1.value bonus=export.sort_bonus_1.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_2.value description=export.sort_description_2.value bonus=export.sort_bonus_2.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_3.value description=export.sort_description_3.value bonus=export.sort_bonus_3.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_4.value description=export.sort_description_4.value bonus=export.sort_bonus_4.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_5.value description=export.sort_description_5.value bonus=export.sort_bonus_5.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_6.value description=export.sort_description_6.value bonus=export.sort_bonus_6.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_7.value description=export.sort_description_7.value bonus=export.sort_bonus_7.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_8.value description=export.sort_description_8.value bonus=export.sort_bonus_8.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_9.value description=export.sort_description_9.value bonus=export.sort_bonus_9.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_10.value description=export.sort_description_10.value bonus=export.sort_bonus_10.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_11.value description=export.sort_description_11.value bonus=export.sort_bonus_11.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_12.value description=export.sort_description_12.value bonus=export.sort_bonus_12.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_13.value description=export.sort_description_13.value bonus=export.sort_bonus_13.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_14.value description=export.sort_description_14.value bonus=export.sort_bonus_14.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_15.value description=export.sort_description_15.value bonus=export.sort_bonus_15.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_16.value description=export.sort_description_16.value bonus=export.sort_bonus_16.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_17.value description=export.sort_description_17.value bonus=export.sort_bonus_17.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_18.value description=export.sort_description_18.value bonus=export.sort_bonus_18.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_19.value description=export.sort_description_19.value bonus=export.sort_bonus_19.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_20.value description=export.sort_description_20.value bonus=export.sort_bonus_20.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_21.value description=export.sort_description_21.value bonus=export.sort_bonus_21.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_22.value description=export.sort_description_22.value bonus=export.sort_bonus_22.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_23.value description=export.sort_description_23.value bonus=export.sort_bonus_23.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_24.value description=export.sort_description_24.value bonus=export.sort_bonus_24.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_25.value description=export.sort_description_25.value bonus=export.sort_bonus_25.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_26.value description=export.sort_description_26.value bonus=export.sort_bonus_26.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_27.value description=export.sort_description_27.value bonus=export.sort_bonus_27.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_28.value description=export.sort_description_28.value bonus=export.sort_bonus_28.value}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/sort.hbs" voie=export.sort_voie_29.value description=export.sort_description_29.value bonus=export.sort_bonus_29.value}}
 | 
			
		||||
      <div> </div>
 | 
			
		||||
      <div> </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </section>
 | 
			
		||||
</form>
 | 
			
		||||
							
								
								
									
										18
									
								
								templates/actor/export-scriptarium/arme.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								templates/actor/export-scriptarium/arme.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
{{#if name}}
 | 
			
		||||
<div class="flexrow item"
 | 
			
		||||
      data-item-id="{{arme._id}}"
 | 
			
		||||
      data-arme-name="{{arme.name}}"
 | 
			
		||||
      data-competence-name="{{competence.name}}">
 | 
			
		||||
  <a class="roll-arme">{{upperFirst name}}</a>
 | 
			
		||||
  <div class="flexrow">
 | 
			
		||||
    <div>{{niveau}}</div>
 | 
			
		||||
    {{#if init}}
 | 
			
		||||
    <div>{{init}}</div>
 | 
			
		||||
    <div>{{dommages}}</div>
 | 
			
		||||
    {{else}}
 | 
			
		||||
    <div></div>
 | 
			
		||||
    <div></div>
 | 
			
		||||
    {{/if}}
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
{{/if}}
 | 
			
		||||
							
								
								
									
										5
									
								
								templates/actor/export-scriptarium/blessure.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								templates/actor/export-scriptarium/blessure.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
{{#if blessure}}
 | 
			
		||||
<a class="click-blessure-remove" data-gravite="{{gravite}}"><i class="fa-regular fa-face-head-bandage blessure-active-{{gravite}}"></i></a>
 | 
			
		||||
{{else}}
 | 
			
		||||
<a class="click-blessure-add" data-gravite="{{gravite}}"><i class="fa-regular fa-circle"></i></a>
 | 
			
		||||
{{/if}}
 | 
			
		||||
							
								
								
									
										26
									
								
								templates/actor/export-scriptarium/blessures.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								templates/actor/export-scriptarium/blessures.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
 | 
			
		||||
<div class="flexcol">
 | 
			
		||||
  <div class="flexrow">
 | 
			
		||||
    <div>Légères</div>
 | 
			
		||||
    <div class="flex-group-right">
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[0] gravite=2}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[1] gravite=2}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[2] gravite=2}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[3] gravite=2}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[4] gravite=2}}
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="flexrow">
 | 
			
		||||
    <div>Graves</div>
 | 
			
		||||
    <div class="flex-group-right">
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[5] gravite=4}}
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[6] gravite=4}}
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="flexrow">
 | 
			
		||||
    <div>Critiques</div>
 | 
			
		||||
    <div class="flex-group-right">
 | 
			
		||||
      {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/blessure.hbs" blessure=etat.blessure.[7] gravite=6}}
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										18
									
								
								templates/actor/export-scriptarium/carac-compteur.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								templates/actor/export-scriptarium/carac-compteur.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
<div class="flexrow">
 | 
			
		||||
  <div>
 | 
			
		||||
    {{#if carac.rollClass}}
 | 
			
		||||
    <a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">
 | 
			
		||||
      {{upper carac.colName}}
 | 
			
		||||
    </a>
 | 
			
		||||
    {{else}}
 | 
			
		||||
    {{upper carac.colName}}
 | 
			
		||||
    {{/if}}
 | 
			
		||||
    <a class="{{button-name}}-moins"><i class="fa-regular fa-square-minus"></i></a>
 | 
			
		||||
    <a class="{{button-name}}-plus"><i class="fa-regular fa-square-plus"></i></a>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="flex-group-right">
 | 
			
		||||
    {{log carac.colName carac.value (eq carac.value actuel.value) actuel.value}}
 | 
			
		||||
    {{log carac.colName carac.value (eq 1 1) actuel.value}}
 | 
			
		||||
    <a class="{{actuel.rollClass}}" data-carac-name="{{actuel.column}}">{{carac.value}} {{#unless (eq carac.value actuel.value)}}(Actuel : {{actuel.value}}){{/unless}}</a>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
@@ -0,0 +1,10 @@
 | 
			
		||||
<div class="flexrow">
 | 
			
		||||
  <div>
 | 
			
		||||
    {{upperFirst carac.colName}}
 | 
			
		||||
    <a class="{{carac.column}}-moins"><i class="fa-regular fa-square-minus"></i></a>
 | 
			
		||||
    <a class="{{carac.column}}-plus"><i class="fa-regular fa-square-plus"></i></a>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="flex-group-right">
 | 
			
		||||
    <a class="{{actuel.rollClass}}" data-carac-name="{{actuel.column}}">{{carac.value}} {{#unless (eq carac.value actuel.value)}}(Actuel : {{actuel.value}}){{/unless}}</a>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										12
									
								
								templates/actor/export-scriptarium/carac-derivee.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								templates/actor/export-scriptarium/carac-derivee.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
<div class="flexrow">
 | 
			
		||||
  <div>
 | 
			
		||||
    {{#if carac.rollClass}}
 | 
			
		||||
    <a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">
 | 
			
		||||
      {{upperFirst carac.colName}}
 | 
			
		||||
    </a>
 | 
			
		||||
    {{else}}
 | 
			
		||||
    {{upperFirst carac.colName}}
 | 
			
		||||
    {{/if}}
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="flex-group-right">{{carac.value}}</div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										10
									
								
								templates/actor/export-scriptarium/carac.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								templates/actor/export-scriptarium/carac.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
<div class="flexrow">
 | 
			
		||||
  <div>
 | 
			
		||||
    {{#if carac.rollClass}}
 | 
			
		||||
    <a class="{{carac.rollClass}}" data-carac-name="{{carac.column}}">{{upper carac.colName}}</a>
 | 
			
		||||
    {{else}}
 | 
			
		||||
    {{upper carac.colName}}
 | 
			
		||||
    {{/if}}
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="flex-group-right">{{carac.value}}</div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										9
									
								
								templates/actor/export-scriptarium/competences.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								templates/actor/export-scriptarium/competences.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
{{#each competences as |group|}}
 | 
			
		||||
  {{#if @index}}/{{/if}}
 | 
			
		||||
  {{#with group}}
 | 
			
		||||
    {{#each list as |comp|}}
 | 
			
		||||
      <span class="item" data-item-id="{{comp._id}}"><a class="roll-competence">{{comp.name}}</a></span>{{~#unless (isLastIndex @index ../list)~}},{{/unless~}}
 | 
			
		||||
    {{/each}}
 | 
			
		||||
    {{numberFormat niveau decimals=0 sign=true}}
 | 
			
		||||
  {{/with}}
 | 
			
		||||
{{/each}}
 | 
			
		||||
							
								
								
									
										10
									
								
								templates/actor/export-scriptarium/esquive.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								templates/actor/export-scriptarium/esquive.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
{{#if name}}
 | 
			
		||||
<div class="flexrow">
 | 
			
		||||
  <div>{{upperFirst name}}</div>
 | 
			
		||||
  <div class="flexrow">
 | 
			
		||||
    <div>{{niveau}}</div>
 | 
			
		||||
    <div></div>
 | 
			
		||||
    <div></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
{{/if}}
 | 
			
		||||
							
								
								
									
										12
									
								
								templates/actor/export-scriptarium/fatigue.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								templates/actor/export-scriptarium/fatigue.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
<div class="flexrow">
 | 
			
		||||
  <div>Fatigue 
 | 
			
		||||
    {{#if etat.fatigue.malus}}
 | 
			
		||||
    ({{etat.fatigue.malus}})
 | 
			
		||||
    {{/if}}
 | 
			
		||||
    <a class="fatigue-moins"><i class="fa-regular fa-square-minus"></i></a>
 | 
			
		||||
    <a class="fatigue-plus"><i class="fa-regular fa-square-plus"></i></a>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="flex-group-right">
 | 
			
		||||
    {{etat.fatigue.value}}{{#if etat.fatigue.value}} / {{etat.fatigue.max}}{{/if}}
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										7
									
								
								templates/actor/export-scriptarium/protection.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								templates/actor/export-scriptarium/protection.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
{{#if protectionnaturelle.value}}
 | 
			
		||||
  {{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=protectionnaturelle}}
 | 
			
		||||
{{/if}}
 | 
			
		||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/export-scriptarium/carac-derivee.hbs" carac=protectionarmure}}
 | 
			
		||||
{{#if armure.value}}
 | 
			
		||||
<div class="flexrow flex-group-right"><i>{{armure.value}}</i></div>
 | 
			
		||||
{{/if}}
 | 
			
		||||
							
								
								
									
										11
									
								
								templates/actor/export-scriptarium/sort.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								templates/actor/export-scriptarium/sort.hbs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
{{#if voie}}
 | 
			
		||||
<div class="flexrow">
 | 
			
		||||
  <div style="flex-grow: 0.4;">{{voie}}</div>
 | 
			
		||||
  <div class="flex-grow-2">{{upperFirst description}}</div>
 | 
			
		||||
  {{#if bonus}}
 | 
			
		||||
  <div>{{bonus}}</div>
 | 
			
		||||
  {{else}}
 | 
			
		||||
  <div></div>
 | 
			
		||||
  {{/if}}
 | 
			
		||||
</div>
 | 
			
		||||
{{/if}}
 | 
			
		||||
@@ -1,19 +1,19 @@
 | 
			
		||||
<div class="header-buttons">
 | 
			
		||||
  <span class="chance-appel">
 | 
			
		||||
    <a><img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/appel-chance.svg" data-tooltip="Appel à la chance"/></a>
 | 
			
		||||
  <span>
 | 
			
		||||
    <a class="button-appel-chance"><img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/appel-chance.svg" data-tooltip="Appel à la chance"/></a>
 | 
			
		||||
  </span>
 | 
			
		||||
  <span class="encaisser-direct">
 | 
			
		||||
    <a><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a>
 | 
			
		||||
  <span>
 | 
			
		||||
    <a class="button-encaissement"><img class="button-img" src="icons/svg/bones.svg" data-tooltip="Encaisser des dommages"/></a>
 | 
			
		||||
  </span>
 | 
			
		||||
  <span class="ethylisme-test">
 | 
			
		||||
    <a><img class="button-img" src="icons/svg/tankard.svg" data-tooltip="Boire"/></a>
 | 
			
		||||
  <span>
 | 
			
		||||
    <a class="button-ethylisme"><img class="button-img" src="icons/svg/tankard.svg" data-tooltip="Boire"/></a>
 | 
			
		||||
  </span>
 | 
			
		||||
  <span class="repos">
 | 
			
		||||
    <a><img class="button-img" src="icons/svg/sleep.svg" data-tooltip="Se reposer"/></a>
 | 
			
		||||
  <span>
 | 
			
		||||
    <a class="button-repos"><img class="button-img" src="icons/svg/sleep.svg" data-tooltip="Se reposer"/></a>
 | 
			
		||||
  </span>
 | 
			
		||||
  {{#if @root.options.isGM}}
 | 
			
		||||
  <span class="remise-a-neuf">
 | 
			
		||||
    <a><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a>
 | 
			
		||||
  <span>
 | 
			
		||||
    <a class="button-remise-a-neuf"><img class="button-img" src="icons/svg/regen.svg" data-tooltip="Remise à neuf"/></a>
 | 
			
		||||
  </span>
 | 
			
		||||
  {{/if}}
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -30,7 +30,7 @@
 | 
			
		||||
    </li>
 | 
			
		||||
    <li>
 | 
			
		||||
      <label class="compteur">
 | 
			
		||||
        <span class="ptreve-actuel"  data-tooltip="Faire un jet de Rêve actuel (ou jet de résistance)"><a>Rêve</a></span>
 | 
			
		||||
        <span class="roll-reve-actuel" data-tooltip="Faire un jet de Rêve actuel (ou jet de résistance)"><a>Rêve</a></span>
 | 
			
		||||
        <a class="ptreve-actuel-moins"><i class="fa-solid fa-square-minus"></i></a>
 | 
			
		||||
        <input class="resource-content" class="pointsreve-value" type="text" name="system.reve.reve.value" value="{{system.reve.reve.value}}" data-dtype="Number" />
 | 
			
		||||
        <span>/ {{system.reve.seuil.value}}</span>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,17 +1,17 @@
 | 
			
		||||
{{#if system.attributs.hautrevant.value}}
 | 
			
		||||
  <div class="tmr-buttons">
 | 
			
		||||
    <span class="monte-tmr">
 | 
			
		||||
      <a data-tooltip="Montée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
 | 
			
		||||
    <span>
 | 
			
		||||
      <a class="button-tmr" data-tooltip="Montée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
 | 
			
		||||
        <img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-normal.svg"/>
 | 
			
		||||
      </a>
 | 
			
		||||
    </span>
 | 
			
		||||
    <span class="monte-tmr-rapide">
 | 
			
		||||
      <a data-tooltip="Montée accélérée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
 | 
			
		||||
    <span>
 | 
			
		||||
      <a class="button-tmr-rapide" data-tooltip="Montée accélérée dans les Terres Médianes !" {{#if hautreve.isDemiReve}}disabled{{/if}}>
 | 
			
		||||
        <img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-rapide.svg"/>
 | 
			
		||||
      </a>
 | 
			
		||||
    </span>
 | 
			
		||||
    <span class="visu-tmr">
 | 
			
		||||
      <a data-tooltip="Regarder les Terres Médianes">
 | 
			
		||||
    <span>
 | 
			
		||||
      <a class="button-tmr-visu" data-tooltip="Regarder les Terres Médianes">
 | 
			
		||||
        <img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-view.svg"/>
 | 
			
		||||
      </a>
 | 
			
		||||
    </span>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user