Compare commits
	
		
			13 Commits
		
	
	
		
			fvtt-hawkm
			...
			fvtt-hawkm
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| c34d223d8f | |||
| 0e5be07fb9 | |||
| 22ae4fb588 | |||
| 42ac857c06 | |||
| 1c143f542c | |||
| 4d447c9783 | |||
| 8760e3eb6e | |||
| b3ddfb802e | |||
| 9f111771df | |||
| 44141e3982 | |||
| 35b47d5aaf | |||
| c48116de54 | |||
| 295c68a16e | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
.history/
 | 
			
		||||
							
								
								
									
										25
									
								
								LICENCE.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								LICENCE.txt
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
MIT License
 | 
			
		||||
 | 
			
		||||
Copyright (c) 2022 Uberwald/LeRatierBretonnien
 | 
			
		||||
 | 
			
		||||
Permission is hereby granted, free of charge, to any person obtaining a copy
 | 
			
		||||
of this software and associated documentation files (the "Software"), to deal
 | 
			
		||||
in the Software without restriction, including without limitation the rights
 | 
			
		||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 | 
			
		||||
copies of the Software, and to permit persons to whom the Software is
 | 
			
		||||
furnished to do so, subject to the following conditions:
 | 
			
		||||
 | 
			
		||||
The above copyright notice and this permission notice shall be included in all
 | 
			
		||||
copies or substantial portions of the Software.
 | 
			
		||||
 | 
			
		||||
This license does not apply to the compendium content listed in this software's
 | 
			
		||||
"packs" directory. See the README for licensing information for the compendium
 | 
			
		||||
packs.
 | 
			
		||||
 | 
			
		||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
			
		||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 | 
			
		||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 | 
			
		||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
			
		||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
			
		||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 | 
			
		||||
SOFTWARE.
 | 
			
		||||
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							@@ -1,23 +1,29 @@
 | 
			
		||||
# Système Foundry pour Mournblade (French RPG, Titam France/Sombres Projets)
 | 
			
		||||
# Système Foundry pour Hawkmoon (French RPG, Titam France/Sombres Projets)
 | 
			
		||||
 | 
			
		||||
## EN
 | 
			
		||||
 | 
			
		||||
Unofficial system for Mournblade (French version from Titam France).
 | 
			
		||||
Unofficial system for Hawkmoon (French version from Titam France).
 | 
			
		||||
 | 
			
		||||
This system has been approved by Département des Sombres Projets ( http://www.titam-france.fr/ ), thanks !
 | 
			
		||||
 | 
			
		||||
Books are mandatory to play and are available at : http://www.titam-france.fr
 | 
			
		||||
 | 
			
		||||
## FR
 | 
			
		||||
 | 
			
		||||
Système non-officiel pour le JDR Mournblade (Titam France).
 | 
			
		||||
Système non-officiel pour le JDR Hawkmoon (Titam France/Sombres Projets).
 | 
			
		||||
 | 
			
		||||
Ce système a été autorisé par Ludospherik ( http://www.ludospherik.fr/ ), merci à eux !
 | 
			
		||||
Ce système a été autorisé par le Département des Sombres Projets ( http://www.titam-france.fr/ ), merci à eux !
 | 
			
		||||
 | 
			
		||||
Les livres du jeu sont nécessaires pour jouer, et sont disponibles ici : http://www.titam-france.fr
 | 
			
		||||
 | 
			
		||||
# Credits 
 | 
			
		||||
 | 
			
		||||
Mournblade, le jeu de rôle de Sword & Sorcery, is a property of Titam France/Sombres Projets.
 | 
			
		||||
Hawkmoon, le jeu de rôle du Troisième Millénaire, is a property of Titam France/Sombres Projets.
 | 
			
		||||
 | 
			
		||||
# Developmement 
 | 
			
		||||
 | 
			
		||||
LeRatierBretonnien
 | 
			
		||||
 | 
			
		||||
# Tests, icones et saisie des données
 | 
			
		||||
 | 
			
		||||
Prêtre, Blondin, Zechrub/Chris, Kyllian, Lightbringer
 | 
			
		||||
 
 | 
			
		||||
@@ -42,10 +42,10 @@ export class HawkmoonActorSheet extends ActorSheet {
 | 
			
		||||
      armes: duplicate(this.actor.getWeapons()),
 | 
			
		||||
      monnaies: duplicate(this.actor.getMonnaies()),
 | 
			
		||||
      protections: duplicate(this.actor.getArmors()),
 | 
			
		||||
      historique: duplicate(this.actor.getHistorique() || {}),
 | 
			
		||||
      talents: duplicate(this.actor.getTalents() || {}),
 | 
			
		||||
      historiques: duplicate(this.actor.getHistoriques() || []),
 | 
			
		||||
      talents: duplicate(this.actor.getTalents() || []),
 | 
			
		||||
      talentsCell: this.getCelluleTalents(),
 | 
			
		||||
      profils: duplicate(this.actor.getProfils()  || {}),
 | 
			
		||||
      profils: duplicate(this.actor.getProfils()  || []),
 | 
			
		||||
      combat: this.actor.getCombatValues(),      
 | 
			
		||||
      equipements: duplicate(this.actor.getEquipments()),
 | 
			
		||||
      artefacts: duplicate(this.actor.getArtefacts()),
 | 
			
		||||
@@ -148,7 +148,11 @@ export class HawkmoonActorSheet extends ActorSheet {
 | 
			
		||||
      let armeId  = li.data("item-id")
 | 
			
		||||
      this.actor.rollArmeDegats(armeId)
 | 
			
		||||
    })
 | 
			
		||||
        
 | 
			
		||||
    
 | 
			
		||||
    html.find('.item-add').click((event) => {
 | 
			
		||||
      const itemType = $(event.currentTarget).data("type")
 | 
			
		||||
      this.actor.createEmbeddedDocuments('Item', [{ name: `Nouveau ${itemType}`, type: itemType }], { renderSheet: true })
 | 
			
		||||
    })
 | 
			
		||||
    
 | 
			
		||||
    html.find('.lock-unlock-sheet').click((event) => {
 | 
			
		||||
      this.options.editScore = !this.options.editScore;
 | 
			
		||||
 
 | 
			
		||||
@@ -41,7 +41,11 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
      const skills = await HawkmoonUtility.loadCompendium("fvtt-hawkmoon-cyd.skills")
 | 
			
		||||
      data.items = skills.map(i => i.toObject())
 | 
			
		||||
    }
 | 
			
		||||
    if (data.type == 'pnj') {
 | 
			
		||||
    if (data.type == 'creature') {
 | 
			
		||||
      const skills = await HawkmoonUtility.loadCompendium("fvtt-hawkmoon-cyd.skills-creatures")
 | 
			
		||||
      data.items = skills.map(i => i.toObject())
 | 
			
		||||
      data.items.push({ name: "Arme naturelle 1", type: 'arme', img: "systems/fvtt-hawkmoon-cyd/assets/icons/melee.webp", system: { typearme: "contact", bonusmaniementoff: 0, seuildefense: 0, degats: "0" } })
 | 
			
		||||
      data.items.push({ name: "Arme naturelle 2", type: 'arme', img: "systems/fvtt-hawkmoon-cyd/assets/icons/melee.webp", system: { typearme: "contact", bonusmaniementoff: 0, seuildefense: 0, degats: "0" } })
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return super.create(data, options);
 | 
			
		||||
@@ -87,6 +91,11 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  getItemSorted(types) {
 | 
			
		||||
    let items = this.items.filter(item => types.includes(item.type)) || []
 | 
			
		||||
    HawkmoonUtility.sortArrayObjectsByName(items)
 | 
			
		||||
    return items
 | 
			
		||||
  }
 | 
			
		||||
  getWeapons() {
 | 
			
		||||
    let armes = []
 | 
			
		||||
    for (let arme of this.items) {
 | 
			
		||||
@@ -94,55 +103,37 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
        armes.push(this.prepareArme(arme))
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    HawkmoonUtility.sortArrayObjectsByName(armes)
 | 
			
		||||
    return armes
 | 
			
		||||
  }
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  getMonnaies() {
 | 
			
		||||
    return this.items.filter( it => it.type == "monnaie")
 | 
			
		||||
    return this.getItemSorted(["monnaie"])
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -----------------------  --------------------- */
 | 
			
		||||
  addMember( actorId) {
 | 
			
		||||
    let members = duplicate(this.system.members)
 | 
			
		||||
    members.push( {id: actorId} )
 | 
			
		||||
    this.update ({'system.members': members})
 | 
			
		||||
  }
 | 
			
		||||
  async removeMember(actorId) {    
 | 
			
		||||
    let members = this.system.members.filter(it => it.id != actorId )
 | 
			
		||||
    this.update ({'system.members': members})
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -----------------------  --------------------- */
 | 
			
		||||
  getEquipments() {
 | 
			
		||||
    return this.items.filter(item => item.type == "equipement")
 | 
			
		||||
    return this.getItemSorted(["equipement"])
 | 
			
		||||
  }
 | 
			
		||||
  /* -----------------------  --------------------- */
 | 
			
		||||
  getArtefacts() {
 | 
			
		||||
    return this.items.filter(item => item.type == "artefact")
 | 
			
		||||
  }
 | 
			
		||||
  /* -----------------------  --------------------- */
 | 
			
		||||
  getMonnaies() {
 | 
			
		||||
    return this.items.filter(item => item.type == "monnaie")
 | 
			
		||||
  }
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
    return this.getItemSorted(["artefact"])
 | 
			
		||||
 }
 | 
			
		||||
  getArmors() {
 | 
			
		||||
    return this.items.filter(item => item.type == "protection")
 | 
			
		||||
    return this.getItemSorted(["protection"])
 | 
			
		||||
  }
 | 
			
		||||
  getHistorique() {
 | 
			
		||||
    return this.items.find(item => item.type == "historique")
 | 
			
		||||
  getHistoriques() {
 | 
			
		||||
    return this.getItemSorted(["historique"])
 | 
			
		||||
  }
 | 
			
		||||
  getProfils() {
 | 
			
		||||
    return this.items.filter(item => item.type == "profil")
 | 
			
		||||
    return this.getItemSorted(["profil"])
 | 
			
		||||
  }
 | 
			
		||||
  getTalents() {
 | 
			
		||||
    return this.items.filter(item => item.type == "talent")
 | 
			
		||||
    return this.getItemSorted(["talent"])
 | 
			
		||||
  }
 | 
			
		||||
  getRessources() {
 | 
			
		||||
    return this.items.filter(item => item.type == "ressource")
 | 
			
		||||
    return this.getItemSorted(["ressource"])
 | 
			
		||||
  }
 | 
			
		||||
  getContacts() {
 | 
			
		||||
    return this.items.filter(item => item.type == "contact")
 | 
			
		||||
    return this.getItemSorted(["contact"])
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  getSkills() {
 | 
			
		||||
    let comp = []
 | 
			
		||||
@@ -163,17 +154,19 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
        comp.push(item)
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    return comp.sort(function (a, b) {
 | 
			
		||||
      let fa = a.name.toLowerCase(),
 | 
			
		||||
        fb = b.name.toLowerCase();
 | 
			
		||||
      if (fa < fb) {
 | 
			
		||||
        return -1;
 | 
			
		||||
      }
 | 
			
		||||
      if (fa > fb) {
 | 
			
		||||
        return 1;
 | 
			
		||||
      }
 | 
			
		||||
      return 0;
 | 
			
		||||
    })
 | 
			
		||||
    HawkmoonUtility.sortArrayObjectsByName(comp)
 | 
			
		||||
    return comp
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -----------------------  --------------------- */
 | 
			
		||||
  addMember(actorId) {
 | 
			
		||||
    let members = duplicate(this.system.members)
 | 
			
		||||
    members.push({ id: actorId })
 | 
			
		||||
    this.update({ 'system.members': members })
 | 
			
		||||
  }
 | 
			
		||||
  async removeMember(actorId) {
 | 
			
		||||
    let members = this.system.members.filter(it => it.id != actorId)
 | 
			
		||||
    this.update({ 'system.members': members })
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
@@ -188,7 +181,7 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  getProtection() {
 | 
			
		||||
    let equipProtection = 0
 | 
			
		||||
    for(let armor in this.items) {
 | 
			
		||||
    for (let armor in this.items) {
 | 
			
		||||
      if (armor.type == "protection" && armor.system.equipped) {
 | 
			
		||||
        equipProtection += Number(armor.system.protection)
 | 
			
		||||
      }
 | 
			
		||||
@@ -209,7 +202,7 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
      vitesseBase: this.getVitesseBase(),
 | 
			
		||||
      vitesseTotal: this.getVitesseBase() + this.system.combat.vitessebonus,
 | 
			
		||||
      defenseBase: this.getDefenseBase(),
 | 
			
		||||
      protection : this.getProtection(),
 | 
			
		||||
      protection: this.getProtection(),
 | 
			
		||||
      defenseTotal: this.getDefenseBase() + this.system.combat.defensebonus + this.getProtection() - this.getTotalAdversite()
 | 
			
		||||
    }
 | 
			
		||||
    return combat
 | 
			
		||||
@@ -382,7 +375,7 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  getBonusDegats() {
 | 
			
		||||
    return 0; 
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
@@ -444,27 +437,27 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  computeRichesse() {
 | 
			
		||||
    let valueSC = 0
 | 
			
		||||
    for(let monnaie of this.items) {
 | 
			
		||||
    for (let monnaie of this.items) {
 | 
			
		||||
      if (monnaie.type == "monnaie") {
 | 
			
		||||
        valueSC += Number(monnaie.system.prixsc) * Number(monnaie.system.quantite) 
 | 
			
		||||
        valueSC += Number(monnaie.system.prixsc) * Number(monnaie.system.quantite)
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    return HawkmoonUtility.computeMonnaieDetails( valueSC)
 | 
			
		||||
    return HawkmoonUtility.computeMonnaieDetails(valueSC)
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  computeValeurEquipement() {
 | 
			
		||||
    let valueSC = 0
 | 
			
		||||
    for(let equip of this.items) {
 | 
			
		||||
    for (let equip of this.items) {
 | 
			
		||||
      if (equip.type == "equipement" || equip.type == "arme" || equip.type == "protection") {
 | 
			
		||||
        valueSC += Number(equip.system.prixsc) * Number(equip.system.quantite ?? 1) 
 | 
			
		||||
        valueSC += (Number(equip.system.prixca) * Number(equip.system.quantite ?? 1)) * 20 
 | 
			
		||||
        valueSC += (Number(equip.system.prixpo) * Number(equip.system.quantite ?? 1)) * 400 
 | 
			
		||||
        valueSC += Number(equip.system.prixsc) * Number(equip.system.quantite ?? 1)
 | 
			
		||||
        valueSC += (Number(equip.system.prixca) * Number(equip.system.quantite ?? 1)) * 20
 | 
			
		||||
        valueSC += (Number(equip.system.prixpo) * Number(equip.system.quantite ?? 1)) * 400
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    return HawkmoonUtility.computeMonnaieDetails( valueSC)
 | 
			
		||||
    return HawkmoonUtility.computeMonnaieDetails(valueSC)
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  getCompetence(compId) {
 | 
			
		||||
    return this.items.get(compId)
 | 
			
		||||
@@ -490,7 +483,7 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
    let maxDef = 0
 | 
			
		||||
    let bestArme
 | 
			
		||||
    for (let arme of defenseList) {
 | 
			
		||||
      if (arme.type == "arme" ) {
 | 
			
		||||
      if (arme.type == "arme") {
 | 
			
		||||
        arme = this.prepareArme(arme)
 | 
			
		||||
      }
 | 
			
		||||
      if (arme.system.totalDefensif > maxDef) {
 | 
			
		||||
@@ -564,8 +557,8 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  async rollAttribut(attrKey, isInit = false) {
 | 
			
		||||
    let rollData = this.getCommonRollData(attrKey)    
 | 
			
		||||
    rollData.multiplier = (isInit)? 1 : 2
 | 
			
		||||
    let rollData = this.getCommonRollData(attrKey)
 | 
			
		||||
    rollData.multiplier = (isInit) ? 1 : 2
 | 
			
		||||
    rollData.isInit = isInit
 | 
			
		||||
    let rollDialog = await HawkmoonRollDialog.create(this, rollData)
 | 
			
		||||
    rollDialog.render(true)
 | 
			
		||||
@@ -601,9 +594,9 @@ export class HawkmoonActor extends Actor {
 | 
			
		||||
      arme = this.prepareArme(arme)
 | 
			
		||||
    }
 | 
			
		||||
    console.log("DEGATS", arme)
 | 
			
		||||
    let roll = new Roll( "1d10+"+arme.system.totalDegats).roll({ async: false })
 | 
			
		||||
    let roll = new Roll("1d10+" + arme.system.totalDegats).roll({ async: false })
 | 
			
		||||
    await HawkmoonUtility.showDiceSoNice(roll, game.settings.get("core", "rollMode"));
 | 
			
		||||
    let nbEtatPerdus = 0 
 | 
			
		||||
    let nbEtatPerdus = 0
 | 
			
		||||
    if (targetVigueur) {
 | 
			
		||||
      nbEtatPerdus = Math.floor(roll.total / targetVigueur)
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -77,7 +77,8 @@ function welcomeMessage() {
 | 
			
		||||
    content: `<div id="welcome-message-Hawkmoon"><span class="rdd-roll-part">
 | 
			
		||||
    <strong>Bienvenue dans Hawkmoon et le troisième Millénaire !</strong>
 | 
			
		||||
    <p>Les livres de Hawkmoon sont nécessaires pour jouer : https://www.titam-france.fr</p>
 | 
			
		||||
    <p>Hawkmoon est jeude rôle publié par Titam France/Sombres projets, tout les droits leur appartiennent.<p>
 | 
			
		||||
    <p>Hawkmoon est jeu de rôle publié par Titam France/Sombres projets, tout les droits leur appartiennent.</p>
 | 
			
		||||
    <p>Système développé par LeRatierBretonnien, support sur le <a href="https://discord.gg/pPSDNJk">Discord FR de Foundry</a>.</p>
 | 
			
		||||
    ` });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -61,6 +61,13 @@ export class HawkmoonUtility {
 | 
			
		||||
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  static sortArrayObjectsByName(myArray) {
 | 
			
		||||
    myArray.sort((a, b) => {
 | 
			
		||||
      return a.name.localeCompare(b.name);
 | 
			
		||||
    })
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  static getModificateurOptions() {
 | 
			
		||||
    let opt = []
 | 
			
		||||
@@ -151,6 +158,7 @@ export class HawkmoonUtility {
 | 
			
		||||
      'systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html',
 | 
			
		||||
      'systems/fvtt-hawkmoon-cyd/templates/partial-item-nav.html',
 | 
			
		||||
      'systems/fvtt-hawkmoon-cyd/templates/partial-list-niveau.html',
 | 
			
		||||
      'systems/fvtt-hawkmoon-cyd/templates/partial-list-niveau-creature.html',
 | 
			
		||||
      'systems/fvtt-hawkmoon-cyd/templates/partial-item-prix.html',
 | 
			
		||||
      'systems/fvtt-hawkmoon-cyd/templates/partial-sante-etat.html',
 | 
			
		||||
      'systems/fvtt-hawkmoon-cyd/templates/partial-automation.html',
 | 
			
		||||
@@ -308,13 +316,13 @@ export class HawkmoonUtility {
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  static computeMonnaieDetails(valueSC) {
 | 
			
		||||
    let po = Math.floor(valueSC / 400)
 | 
			
		||||
    let pa = Math.floor((valueSC - (po*400)) / 20)
 | 
			
		||||
    let sc = valueSC - (po*400) - (pa*20)
 | 
			
		||||
    let pa = Math.floor((valueSC - (po * 400)) / 20)
 | 
			
		||||
    let sc = valueSC - (po * 400) - (pa * 20)
 | 
			
		||||
    return {
 | 
			
		||||
      po: po, pa: pa, sc: sc, valueSC: valueSC 
 | 
			
		||||
      po: po, pa: pa, sc: sc, valueSC: valueSC
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  static computeResult(rollData) {
 | 
			
		||||
    rollData.diceResult = rollData.roll.terms[0].results[0].result
 | 
			
		||||
@@ -430,7 +438,7 @@ export class HawkmoonUtility {
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
  static getUsers(filter) {
 | 
			
		||||
    return game.users.filter(filter).map(user => user.data._id);
 | 
			
		||||
    return game.users.filter(filter).map(user => user._id);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* -------------------------------------------- */
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								packs/competences-creatures.db
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								packs/competences-creatures.db
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
{"name":"Mêlée","type":"competence","img":"systems/fvtt-hawkmoon-cyd/assets/icons/competence.webp","system":{"description":"<p style=\"text-align: justify;\">Mêlée représente la maîtrise martiale et l’habileté au combat rapproché, avec ou sans arme. Plus cette Compétence est élevée, plus le personnage est à même de passer la garde de ses adversaires en combat au corps-à-corps.</p>","niveau":0,"attribut1":"pui","attribut2":"none","attribut3":"none","doublebonus":false,"predilections":[{"name":"Armes à une main (Puissance)","used":false,"description":"Pour utiliser des armes comme l’épée courte, la hache, une arme improvisée à une main, etc.\n\n"},{"name":"Armes à deux mains (Puissance)","used":false,"description":"Pour utiliser des armes comme la hache nordaine ou l’épée arthurienne, une arme improvisée à deux mains, etc."},{"name":"Mains nues (Puissance)","used":false,"description":"Pour se battre à mains nues, qu’il s’agisse d’une bagarre ou d’un pugilat codifié."}],"predilections[0]":["Nouvelle prédilection",""]},"effects":[],"ownership":{"default":0,"8b7NkRYwYKm5eOMy":3,"wYQCdPQVeRKBJmZI":3},"flags":{"core":{"sourceId":"Compendium.fvtt-hawkmoon-cyd.skills.VM3TSQYxseYdCFjv"}},"_stats":{"systemId":"fvtt-hawkmoon-cyd","systemVersion":"10.1.7","coreVersion":"10.291","createdTime":1666620807186,"modifiedTime":1671645643952,"lastModifiedBy":"wYQCdPQVeRKBJmZI"},"folder":null,"sort":0,"_id":"0nhTxujlIUB63Aqt"}
 | 
			
		||||
{"name":"Discrétion","type":"competence","img":"systems/fvtt-hawkmoon-cyd/assets/icons/competence.webp","system":{"description":"<p style=\"text-align: justify;\">Discrétion représente la capacité à ne pas se faire remarquer, qu’il s’agisse de se fondre dans la foule, de prendre l'apparence de quelqu’un d’autre, de se cacher dans l’ombre ou encore de se déplacer en silence. Plus cette Compétence est élevée, plus le personnage est apte à passer<br>physiquement inaperçu.</p>","niveau":0,"attribut1":"adr","attribut2":"tre","attribut3":"none","doublebonus":false,"predilections":[{"name":"Cacher et se cacher (Trempe)","used":false,"description":"Pour se fondre dans le décor. Le personnage adopte un comportement décontracté qui le fait passer inaperçu, il trouve une cachette, etc. Permet également de dissimuler un objet sur soi (qu’il s’agisse d’une bourse, d’une arme, d’un tatouage, etc.).\n\n"},{"name":"Déguisement (Trempe)","used":false,"description":"Pour dissimuler son identité, altérer ses traits ou prendre ceux d'une personne spécifique."},{"name":"Déplacement silencieux (Adresse)","used":false,"description":"Pour se déplacer sans éveiller l’attention lorsqu’on ne peut être vu (dans l’obscurité ou à couvert, lorsqu’un garde est derrière une porte ou un angle\nde mur, etc.)."}]},"effects":[],"ownership":{"default":0,"8b7NkRYwYKm5eOMy":3,"wYQCdPQVeRKBJmZI":3},"flags":{"core":{"sourceId":"Compendium.fvtt-hawkmoon-cyd.skills.gBmAdYl4rhbY89ee"}},"_stats":{"systemId":"fvtt-hawkmoon-cyd","systemVersion":"10.1.7","coreVersion":"10.291","createdTime":1666620807186,"modifiedTime":1671645638028,"lastModifiedBy":"wYQCdPQVeRKBJmZI"},"folder":null,"sort":0,"_id":"J4x6SP6l6njOrZn3"}
 | 
			
		||||
{"name":"Armes à distance","type":"competence","img":"systems/fvtt-hawkmoon-cyd/assets/icons/competence.webp","system":{"description":"<p style=\"text-align: justify;\">Représente l’habileté au lancer ou avec une arme à distance. Plus cette Compétence est élevée, plus les tirs du personnage sont précis. </p>\n<p style=\"text-align: justify;\"> </p>\n<p style=\"text-align: justify;\"> </p>\n<p style=\"text-align: justify;\"> </p>","niveau":0,"attribut1":"adr","attribut2":"none","attribut3":"none","doublebonus":false,"predilections":[{"name":"Armes à feu (Adresse)  ","used":false,"description":"Pour des armes comme le lance-feu. "},{"name":"Armes à projectile (Adresse)","used":false,"description":"Pour des armes comme l'arc, la fronde, l'arbalète, etc."},{"name":"Armes de jet (Adresse)","used":false,"description":"Pour des armes comme la dague de lancer, la bombe à mèche, le javelot, les projectiles improvisés, etc. "}],"predilections[0]":["Nouvelle prédilection",""],"predilections[1]":["Nouvelle prédilection",""],"predilections[2]":["Nouvelle prédilection",""]},"effects":[],"ownership":{"default":0,"8b7NkRYwYKm5eOMy":3,"wYQCdPQVeRKBJmZI":3},"flags":{"core":{"sourceId":"Compendium.fvtt-hawkmoon-cyd.skills.MLMlscPBb1ZCPTRl"}},"_stats":{"systemId":"fvtt-hawkmoon-cyd","systemVersion":"10.1.7","coreVersion":"10.291","createdTime":1666619959067,"modifiedTime":1671645649970,"lastModifiedBy":"wYQCdPQVeRKBJmZI"},"folder":null,"sort":0,"_id":"UfVYwmPFwy2T7jZM"}
 | 
			
		||||
{"name":"Survie","type":"competence","img":"systems/fvtt-hawkmoon-cyd/assets/icons/competence.webp","system":{"description":"<p style=\"text-align: justify;\">Survie représente la capacité à trouver de quoi subsister dans la nature, à établir un campement, à faire du feu avec les moyens du bord, à se repérer. Avec Clairvoyance, cette Compétence permet de trouver des baies comestibles, de poser tous les types de pièges, de pister, de trouver le meilleur emplacement pour un campement. Avec Adresse, elle permet de chasser, de pêcher, de faire du feu dans des conditions difficiles et de confectionner les pièges les plus simples (collets, fosses, etc.).</p>\n<p style=\"text-align: justify;\">Les Prédilections représentent quant à elles les différents milieux ou climats.</p>","niveau":0,"attribut1":"adr","attribut2":"cla","attribut3":"none","doublebonus":false,"predilections":[{"name":"Fleuve, Forêt, Hiver, Mer, Montagne, Souterrains, etc. (Adresse ou Clairvoyance)","used":false,"description":"En fonction de chaque milieu, la Prédilection permet d’y évoluer de la façon la plus adaptée."}],"predilections[0]":["Nouvelle prédilection",""],"predilections[1]":["Nouvelle prédilection",""],"predilections[2]":["Nouvelle prédilection",""],"predilections[3]":["Nouvelle prédilection",""],"predilections[4]":["Nouvelle prédilection",""],"predilections[5]":["Nouvelle prédilection",""],"predilections[6]":["Nouvelle prédilection",""],"predilections[7]":["Nouvelle prédilection",""],"predilections[8]":["Nouvelle prédilection",""],"predilections[9]":["Nouvelle prédilection",""],"predilections[10]":["Nouvelle prédilection",""],"predilections[11]":["Nouvelle prédilection",""]},"effects":[],"ownership":{"default":0,"8b7NkRYwYKm5eOMy":3,"wYQCdPQVeRKBJmZI":3},"flags":{"core":{"sourceId":"Compendium.fvtt-hawkmoon-cyd.skills.yI1zY5k8mAdx9wHK"}},"_stats":{"systemId":"fvtt-hawkmoon-cyd","systemVersion":"10.1.7","coreVersion":"10.291","createdTime":1666620807186,"modifiedTime":1671645647913,"lastModifiedBy":"wYQCdPQVeRKBJmZI"},"folder":null,"sort":0,"_id":"Vpth0atT9qS6VqUB"}
 | 
			
		||||
{"name":"Perception","type":"competence","img":"systems/fvtt-hawkmoon-cyd/assets/icons/competence.webp","system":{"description":"<p style=\"text-align: justify;\">Perception représente à la fois la conscience de son environnement, la capacité à remarquer les détails incongrus, et l’aptitude à lire le langage corporel. Plus cette Compétence est élevée, plus les sens du personnage sont affûtés.</p>","niveau":0,"attribut1":"cla","attribut2":"none","attribut3":"none","doublebonus":false,"predilections":[{"name":"Empathie (Clairvoyance)","used":false,"description":"Pour déchiffrer, par son attitude ou ses gestes, l’opinion ou la sincérité d’un interlocuteur, pour deviner les choses exprimées à mots couverts, pour comprendre quelqu’un qui s’exprime par signes."},{"name":"Recherche (Clairvoyance)","used":false,"description":"Pour remarquer les détails les plus infimes, pour trouver un objet ou un passage dissimulés."},{"name":"Vigilance (Clairvoyance) ","used":false,"description":"Pour détecter un personnage ou un animal qui se cache, pour remarquer une menace potentielle (piège, terrain dangereux, tireur embusqué), pour rester attentif lors d’un tour de garde."}],"predilections[0]":["Nouvelle prédilection",""],"predilections[1]":["Nouvelle prédilection",""],"predilections[2]":["Nouvelle prédilection",""],"predilections[3]":["Nouvelle prédilection",""],"predilections[4]":["Nouvelle prédilection",""],"predilections[5]":["Nouvelle prédilection",""]},"effects":[],"ownership":{"default":0,"8b7NkRYwYKm5eOMy":3,"wYQCdPQVeRKBJmZI":3},"flags":{"core":{"sourceId":"Compendium.fvtt-hawkmoon-cyd.skills.7p2MTjttE4fllp9e"}},"_stats":{"systemId":"fvtt-hawkmoon-cyd","systemVersion":"10.1.7","coreVersion":"10.291","createdTime":1666620807186,"modifiedTime":1671645646434,"lastModifiedBy":"wYQCdPQVeRKBJmZI"},"folder":null,"sort":0,"_id":"cunjmZoXNhSX5qdV"}
 | 
			
		||||
{"name":"Coercition","type":"competence","img":"systems/fvtt-hawkmoon-cyd/assets/icons/competence.webp","system":{"description":"<p style=\"text-align: justify;\">Coercition représente la capacité de forcer quelqu’un à agir contre son gré, à révéler des secrets ou à obéir aveuglément. Plus cette Compétence est élevée, plus le personnage sait se montrer intimidant et jouer sur l’autorité qu’il inspire pour briser la volonté de ses interlocuteurs.</p>","niveau":0,"attribut1":"pre","attribut2":"none","attribut3":"none","doublebonus":false,"predilections":[{"name":"Commandement (Présence) ","used":false,"description":"Pour donner des ordres auxquels on obéira sans poser de question. "},{"name":"Interrogatoire (Présence)","used":false,"description":"Pour forcer quelqu'un à révéler des informations, que ce soit par la torture ou à l'aide de techniques de manipulation plus subtiles. "},{"name":"Intimidation (Présence)","used":false,"description":"Pour faire peur, pour convaincre quelqu'un de renoncer à se battre, pour donner l'impression d'être dangereux. "}]},"effects":[],"ownership":{"default":0,"8b7NkRYwYKm5eOMy":3,"wYQCdPQVeRKBJmZI":3},"flags":{"core":{"sourceId":"Compendium.fvtt-hawkmoon-cyd.skills.15IDGG6JoZnRCQtY"}},"_stats":{"systemId":"fvtt-hawkmoon-cyd","systemVersion":"10.1.7","coreVersion":"10.291","createdTime":1666620317429,"modifiedTime":1671645635525,"lastModifiedBy":"wYQCdPQVeRKBJmZI"},"folder":null,"sort":0,"_id":"lchi2ulzWdm8j1l7"}
 | 
			
		||||
{"name":"Nage","type":"competence","img":"systems/fvtt-hawkmoon-cyd/assets/icons/competence.webp","system":{"description":"<p style=\"text-align: justify;\">Nage représente la vitesse (Adresse), mais aussi l’endurance du nageur (Puissance). La natation est une Compétence assez rare dans le monde de Hawkmoon. Un personnage qui n’a plus pied et ne sait pas nager commence à se noyer au bout d’un tour de jeu (soit six secondes). Reportez-vous à la règle de noyade p. 214.</p>\n<p style=\"text-align: justify;\"> </p>\n<h3 style=\"text-align: justify;\"><strong>Prédilections/Maîtrises</strong></h3>\n<ul>\n<li style=\"text-align: justify;\"><strong>Au choix du joueur et du MJ.</strong></li>\n</ul>","niveau":0,"attribut1":"adr","attribut2":"pui","attribut3":"none","doublebonus":false,"predilections":[],"predilections[0]":["Nouvelle prédilection",""],"predilections[1]":["Nouvelle prédilection",""],"predilections[2]":["Nouvelle prédilection",""],"predilections[3]":["Nouvelle prédilection",""]},"effects":[],"ownership":{"default":0,"8b7NkRYwYKm5eOMy":3,"wYQCdPQVeRKBJmZI":3},"flags":{"core":{"sourceId":"Compendium.fvtt-hawkmoon-cyd.skills.Dw7q0dGCoaBy1Smu"}},"_stats":{"systemId":"fvtt-hawkmoon-cyd","systemVersion":"10.1.7","coreVersion":"10.291","createdTime":1666620807186,"modifiedTime":1671645639961,"lastModifiedBy":"wYQCdPQVeRKBJmZI"},"folder":null,"sort":0,"_id":"pyeEZFo46NTnV8WK"}
 | 
			
		||||
{"name":"Mouvements","type":"competence","img":"systems/fvtt-hawkmoon-cyd/assets/icons/competence.webp","system":{"description":"<p style=\"text-align: justify;\">Mouvements indique la capacité du personnage à se déplacer rapidement et longtemps. Cette Compétence représente aussi bien la souplesse et la vivacité des gestes que l’endurance physique et la résistance à l’effort. Plus cette Compétence est élevée, plus le personnage est en forme et peut courir, grimper ou sauter longtemps et rapidement sans se fatiguer.</p>","niveau":0,"attribut1":"adr","attribut2":"pui","attribut3":"none","doublebonus":false,"predilections":[{"name":"Acrobaties (Adresse)","used":true,"description":"Pour faire des figures acrobatiques, sauter en hauteur ou en longueur, jongler, ou encore pour rattraper un objet fragile sans l’abîmer (ou un ustensile dangereux sans se blesser).\n\n"},{"name":"Course (Puissance)","used":false,"description":"Pour sprinter ou pour tenir la distance dans une course d’endurance."},{"name":"Escalade (Puissance) ","used":false,"description":"Pour escalader murs, arbres, etc. Sert également à avancer en étant suspendu à une corde horizontale."}],"predilections[0]":["Nouvelle prédilection",""],"predilections[1]":["Nouvelle prédilection",""],"predilections[2]":["Nouvelle prédilection",""]},"effects":[],"ownership":{"default":0,"8b7NkRYwYKm5eOMy":3,"wYQCdPQVeRKBJmZI":3},"flags":{"core":{"sourceId":"Compendium.fvtt-hawkmoon-cyd.skills.bP7pPSCekexUEf7m"}},"_stats":{"systemId":"fvtt-hawkmoon-cyd","systemVersion":"10.1.7","coreVersion":"10.291","createdTime":1666620807186,"modifiedTime":1671645642114,"lastModifiedBy":"wYQCdPQVeRKBJmZI"},"folder":null,"sort":0,"_id":"tFU5yISK6spdNWco"}
 | 
			
		||||
@@ -1209,12 +1209,10 @@ ul, li {
 | 
			
		||||
  text-shadow: 0px 1px 0px #4d3534;
 | 
			
		||||
  position: relative;
 | 
			
		||||
  max-height:1.7rem;
 | 
			
		||||
  margin-left:4px;
 | 
			
		||||
  flex-grow:1;
 | 
			
		||||
  max-width: 4rem;
 | 
			
		||||
  min-width: 4rem;
 | 
			
		||||
  max-width: 3.5rem;
 | 
			
		||||
  min-width: 3.5rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.button-sheet-roll:hover {
 | 
			
		||||
  background: linear-gradient(to bottom, #800000 5%, #3e0101 100%);
 | 
			
		||||
  background-color: rgb(56, 33, 33);
 | 
			
		||||
@@ -1224,6 +1222,21 @@ ul, li {
 | 
			
		||||
  top:1px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.defense-sheet {
 | 
			
		||||
  border-radius: 4px;
 | 
			
		||||
  text-align: center;
 | 
			
		||||
  display: inline-block;
 | 
			
		||||
  font-size: 0.8rem;
 | 
			
		||||
  padding: 1px 1px 0px 1px;
 | 
			
		||||
  text-decoration: none;
 | 
			
		||||
  position: relative;
 | 
			
		||||
  max-height:1.7rem;
 | 
			
		||||
  margin-left:4px;
 | 
			
		||||
  flex-grow:1;
 | 
			
		||||
  max-width: 3.5rem;
 | 
			
		||||
  min-width: 3.5rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.plus-minus-button {
 | 
			
		||||
  box-shadow: inset 0px 1px 0px 0px #a6827e;
 | 
			
		||||
  background: linear-gradient(to bottom, #21374afc 5%, #152833ab 100%);
 | 
			
		||||
@@ -1315,13 +1328,10 @@ ul, li {
 | 
			
		||||
/*************************************************************/
 | 
			
		||||
.arme-defensif {
 | 
			
		||||
  padding-top: 7px;
 | 
			
		||||
  padding-left: 4px;
 | 
			
		||||
  margin-left: 4px;
 | 
			
		||||
  text-align: center;
 | 
			
		||||
  flex-grow: 2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*************************************************************/
 | 
			
		||||
.item-name-img {
 | 
			
		||||
  flex-grow:1;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								system.json
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								system.json
									
									
									
									
									
								
							@@ -1,7 +1,7 @@
 | 
			
		||||
{
 | 
			
		||||
  "id": "fvtt-hawkmoon-cyd",
 | 
			
		||||
  "description": "Hawmoon RPG for FoundryVTT (CYD system - French)",
 | 
			
		||||
  "version": "10.1.5",
 | 
			
		||||
  "description": "Hawkmoon RPG for FoundryVTT (CYD system - French)",
 | 
			
		||||
  "version": "10.1.12",
 | 
			
		||||
  "authors": [
 | 
			
		||||
    {
 | 
			
		||||
      "name": "Uberwald/LeRatierBretonnien",
 | 
			
		||||
@@ -35,7 +35,7 @@
 | 
			
		||||
  "gridUnits": "m",
 | 
			
		||||
  "license": "LICENSE.txt",
 | 
			
		||||
  "manifest": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/raw/branch/master/system.json",
 | 
			
		||||
  "download": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/archive/fvtt-hawkmoon-cyd-10.1.5.zip",
 | 
			
		||||
  "download": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/archive/fvtt-hawkmoon-cyd-10.1.12.zip",
 | 
			
		||||
  "languages": [
 | 
			
		||||
    {
 | 
			
		||||
      "lang": "fr",
 | 
			
		||||
@@ -54,6 +54,15 @@
 | 
			
		||||
      "private": false,
 | 
			
		||||
      "flags": {}
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "type": "Item",
 | 
			
		||||
      "label": "Compétences de Créatures",
 | 
			
		||||
      "name": "skills-creatures",
 | 
			
		||||
      "path": "packs/competences-creatures.db",
 | 
			
		||||
      "system": "fvtt-hawkmoon-cyd",
 | 
			
		||||
      "private": false,
 | 
			
		||||
      "flags": {}
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "type": "Item",
 | 
			
		||||
      "label": "Historiques",
 | 
			
		||||
@@ -147,7 +156,6 @@
 | 
			
		||||
  "background": "systems/fvtt-hawkmoon-cyd/assets/ui/fond_hawkmoon.webp",
 | 
			
		||||
  "compatibility": {
 | 
			
		||||
    "minimum": "10",
 | 
			
		||||
    "verified": "10",
 | 
			
		||||
    "maximum": "10"
 | 
			
		||||
    "verified": "10"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -19,7 +19,8 @@
 | 
			
		||||
          "habitat": "",
 | 
			
		||||
          "notes": "",
 | 
			
		||||
          "statut": "",
 | 
			
		||||
          "gmnotes": ""
 | 
			
		||||
          "gmnotes": "",
 | 
			
		||||
          "statutresistant": "commun"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "core": {
 | 
			
		||||
 
 | 
			
		||||
@@ -275,11 +275,11 @@
 | 
			
		||||
 | 
			
		||||
              {{#if arme.system.isdefense}}
 | 
			
		||||
              <span class="item-field-label-short arme-defensif item-field-label-short"><label
 | 
			
		||||
                  class="arme-defensif item-field-label-short">{{arme.system.totalDefensif}}</label></span>
 | 
			
		||||
                  class="arme-defensif item-field-label-short defense-sheet">{{arme.system.totalDefensif}}</label></span>
 | 
			
		||||
              {{else}}
 | 
			
		||||
              <span class="item-field-label-short arme-defensif"><label
 | 
			
		||||
                  class="item-field-label-short arme-defensif">-</label></span>
 | 
			
		||||
              {{/if}}
 | 
			
		||||
              <span class="item-field-label-short arme-defensif item-field-label-short"><label
 | 
			
		||||
                class="arme-defensif item-field-label-short defense-sheet">N/A</label></span>
 | 
			
		||||
            {{/if}}
 | 
			
		||||
 | 
			
		||||
              <span class="item-field-label-short">
 | 
			
		||||
                {{#if arme.system.equipped}}
 | 
			
		||||
@@ -312,7 +312,7 @@
 | 
			
		||||
              </span>
 | 
			
		||||
              <div class="item-filler"> </div>
 | 
			
		||||
              <div class="item-controls item-controls-fixed">
 | 
			
		||||
                <a class="item-control item-add" data-type="arme" title="Ajouter une arme"><i
 | 
			
		||||
                <a class="item-control item-add" data-type="protection" title="Ajouter une arme"><i
 | 
			
		||||
                    class="fas fa-plus"></i></a>
 | 
			
		||||
              </div>
 | 
			
		||||
            </li>
 | 
			
		||||
@@ -362,7 +362,7 @@
 | 
			
		||||
 | 
			
		||||
              <div class="item-filler"> </div>
 | 
			
		||||
              <div class="item-controls item-controls-fixed">
 | 
			
		||||
                <a class="item-control item-add" data-type="arme" title="Ajouter une arme"><i
 | 
			
		||||
                <a class="item-control item-add" data-type="monnaie" title="Ajouter une monnaie"><i
 | 
			
		||||
                    class="fas fa-plus"></i></a>
 | 
			
		||||
              </div>
 | 
			
		||||
            </li>
 | 
			
		||||
@@ -406,7 +406,7 @@
 | 
			
		||||
 | 
			
		||||
              <div class="item-filler"> </div>
 | 
			
		||||
              <div class="item-controls item-controls-fixed">
 | 
			
		||||
                <a class="item-control item-add" data-type="arme" title="Ajouter une arme"><i
 | 
			
		||||
                <a class="item-control item-add" data-type="equipement" title="Ajouter un équipement"><i
 | 
			
		||||
                    class="fas fa-plus"></i></a>
 | 
			
		||||
              </div>
 | 
			
		||||
            </li>
 | 
			
		||||
@@ -441,7 +441,7 @@
 | 
			
		||||
 | 
			
		||||
              <div class="item-filler"> </div>
 | 
			
		||||
              <div class="item-controls item-controls-fixed">
 | 
			
		||||
                <a class="item-control item-add" data-type="arme" title="Ajouter une arme"><i
 | 
			
		||||
                <a class="item-control item-add" data-type="artefact" title="Ajouter un artefact"><i
 | 
			
		||||
                    class="fas fa-plus"></i></a>
 | 
			
		||||
              </div>
 | 
			
		||||
            </li>
 | 
			
		||||
@@ -473,6 +473,7 @@
 | 
			
		||||
 | 
			
		||||
      <div>
 | 
			
		||||
        <ul class="item-list alternate-list">
 | 
			
		||||
          {{#each historiques as |historique key|}}
 | 
			
		||||
          <li class="item flexrow" data-item-id="{{historique._id}}">
 | 
			
		||||
            <label class="generic-label">Historique : </label>
 | 
			
		||||
            <label class="generic-label">{{historique.name}}</label>
 | 
			
		||||
@@ -482,6 +483,7 @@
 | 
			
		||||
              <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
 | 
			
		||||
            </div>
 | 
			
		||||
          </li>
 | 
			
		||||
          {{/each}}
 | 
			
		||||
          {{#each profils as |profil key|}}
 | 
			
		||||
          <li class="item flexrow" data-item-id="{{profil._id}}">
 | 
			
		||||
            <label class="generic-label">Profil : </label>
 | 
			
		||||
@@ -500,6 +502,17 @@
 | 
			
		||||
      <div class="grid grid-3col">
 | 
			
		||||
        <div>
 | 
			
		||||
          <ul>
 | 
			
		||||
            <li class="flexrow item">
 | 
			
		||||
              <label class="generic-label">Statut de résistant</label>
 | 
			
		||||
              <select class="status-small-label color-class-common item-field-label-long" type="text"
 | 
			
		||||
              name="system.biodata.statutresistant" value="{{system.biodata.statutresistant}}" data-dtype="String">
 | 
			
		||||
                {{#select system.biodata.statutresistant}}
 | 
			
		||||
                <option value="commun">Commun</option>
 | 
			
		||||
                <option value="clandestin">Clandestin</option>
 | 
			
		||||
                <option value="insurge">Insurgé</option>
 | 
			
		||||
                {{/select}}
 | 
			
		||||
              </select>
 | 
			
		||||
            </li>
 | 
			
		||||
            <li class="flexrow item">
 | 
			
		||||
              <label class="generic-label">Sexe</label>
 | 
			
		||||
              <input type="text" class="" name="system.biodata.sex" value="{{system.biodata.sex}}"
 | 
			
		||||
 
 | 
			
		||||
@@ -49,7 +49,7 @@
 | 
			
		||||
              <select class="status-small-label color-class-common edit-item-data competence-niveau" type="text"
 | 
			
		||||
                name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number">
 | 
			
		||||
                {{#select attr.value}}
 | 
			
		||||
                {{> systems/fvtt-hawkmoon-cyd/templates/partial-list-niveau.html}}
 | 
			
		||||
                {{> systems/fvtt-hawkmoon-cyd/templates/partial-list-niveau-creature.html}}
 | 
			
		||||
                {{/select}}
 | 
			
		||||
              </select>
 | 
			
		||||
            </li>
 | 
			
		||||
@@ -65,7 +65,7 @@
 | 
			
		||||
          <ul class="item-list alternate-list">
 | 
			
		||||
            <li class="item flexrow">
 | 
			
		||||
              <label class="label-name item-field-label-short">Vigueur</label>
 | 
			
		||||
              <label class="label-name item-field-label-short">{{system.sante.vigueur}}</label>
 | 
			
		||||
              <input type="text" class="padd-right numeric-input item-field-label-short" data-dtype="Number" name="system.sante.vigueur" value="{{system.sante.vigueur}}" >
 | 
			
		||||
            </li>
 | 
			
		||||
            <li class="item  flexrow">
 | 
			
		||||
              <label class="label-name item-field-label-short">Etat</label>
 | 
			
		||||
@@ -104,14 +104,6 @@
 | 
			
		||||
            {{/each}}
 | 
			
		||||
          </ul>
 | 
			
		||||
 | 
			
		||||
          <h4 class="item-name-label competence-name">Vitesse</h4>
 | 
			
		||||
          <ul class="item-list alternate-list">
 | 
			
		||||
            <li class="item flexrow" data-adversite="{{key}}">
 | 
			
		||||
              <input type="text" class="padd-right numeric-input item-field-label-short" name="system.vitesse.value"
 | 
			
		||||
                value="{{system.vitesse.value}}" data-dtype="Number" />      
 | 
			
		||||
            </li>
 | 
			
		||||
          </ul>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
@@ -277,10 +269,11 @@
 | 
			
		||||
              </span>
 | 
			
		||||
 | 
			
		||||
              {{#if arme.system.isdefense}}
 | 
			
		||||
              <span class="item-field-label-short arme-defensif item-field-label-short"><label
 | 
			
		||||
                  class="arme-defensif item-field-label-short">{{arme.system.totalDefensif}}</label></span>
 | 
			
		||||
                <span class="item-field-label-short arme-defensif item-field-label-short"><label
 | 
			
		||||
                  class="arme-defensif item-field-label-short defense-sheet">{{arme.system.totalDefensif}}</label></span>
 | 
			
		||||
              {{else}}
 | 
			
		||||
              <span class="item-field-label-short arme-defensif"><label class="item-field-label-short arme-defensif">-</label></span>
 | 
			
		||||
                <span class="item-field-label-short arme-defensif item-field-label-short"><label
 | 
			
		||||
                  class="arme-defensif item-field-label-short defense-sheet">N/A</label></span>
 | 
			
		||||
              {{/if}}
 | 
			
		||||
 | 
			
		||||
              <span class="item-field-label-short">
 | 
			
		||||
@@ -314,7 +307,7 @@
 | 
			
		||||
              </span>
 | 
			
		||||
              <div class="item-filler"> </div>
 | 
			
		||||
              <div class="item-controls item-controls-fixed">
 | 
			
		||||
                <a class="item-control item-add" data-type="arme" title="Ajouter une arme"><i
 | 
			
		||||
                <a class="item-control item-add" data-type="protection" title="Ajouter une arme"><i
 | 
			
		||||
                    class="fas fa-plus"></i></a>
 | 
			
		||||
              </div>
 | 
			
		||||
            </li>
 | 
			
		||||
 
 | 
			
		||||
@@ -42,7 +42,7 @@
 | 
			
		||||
      <li class="flexrow item">
 | 
			
		||||
        <label class="generic-label item-field-label-long">Dégâts : </label>
 | 
			
		||||
          <input type="text" class="padd-right numeric-input item-field-label-short" name="system.degats"
 | 
			
		||||
            value="{{system.degats}}" data-dtype="Number" />
 | 
			
		||||
            value="{{system.degats}}" data-dtype="String" />
 | 
			
		||||
        </li>
 | 
			
		||||
      {{/if}}
 | 
			
		||||
      <li class="flexrow item">
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										21
									
								
								templates/partial-list-niveau-creature.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								templates/partial-list-niveau-creature.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
<option value="0">0</option>
 | 
			
		||||
<option value="1">1</option>
 | 
			
		||||
<option value="2">2</option>
 | 
			
		||||
<option value="3">3</option>
 | 
			
		||||
<option value="4">4</option>
 | 
			
		||||
<option value="5">5</option>
 | 
			
		||||
<option value="6">6</option>
 | 
			
		||||
<option value="7">7</option>
 | 
			
		||||
<option value="8">8</option>
 | 
			
		||||
<option value="9">9</option>
 | 
			
		||||
<option value="10">10</option>
 | 
			
		||||
<option value="11">11</option>
 | 
			
		||||
<option value="12">12</option>
 | 
			
		||||
<option value="13">13</option>
 | 
			
		||||
<option value="14">14</option>
 | 
			
		||||
<option value="15">15</option>
 | 
			
		||||
<option value="16">16</option>
 | 
			
		||||
<option value="17">17</option>
 | 
			
		||||
<option value="18">18</option>
 | 
			
		||||
<option value="19">19</option>
 | 
			
		||||
<option value="20">20</option>
 | 
			
		||||
		Reference in New Issue
	
	Block a user