Ajout armes/accessoires/protection
This commit is contained in:
parent
aefdb54c85
commit
a30e96c76c
BIN
assets/icons/armor.webp
Normal file
BIN
assets/icons/armor.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
BIN
assets/icons/item.webp
Normal file
BIN
assets/icons/item.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
BIN
assets/icons/weapon.webp
Normal file
BIN
assets/icons/weapon.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 79 KiB |
@ -67,6 +67,48 @@ export const HERITIERS_CONFIG = {
|
|||||||
"26": "Légendaire",
|
"26": "Légendaire",
|
||||||
"28": "Mythique",
|
"28": "Mythique",
|
||||||
"30": "Divine"
|
"30": "Divine"
|
||||||
|
},
|
||||||
|
|
||||||
|
categorieArme : {
|
||||||
|
"trait": "Arme de trait",
|
||||||
|
"poing": "Arme de poing",
|
||||||
|
"epaule": "Arme d'épaule",
|
||||||
|
"lourde": "Arme lourde",
|
||||||
|
"blanche": "Arme blanche",
|
||||||
|
"improvise": "Arme improvisée",
|
||||||
|
"explosif": "Explosif"
|
||||||
|
},
|
||||||
|
typeArme: {
|
||||||
|
"trait": "Trait",
|
||||||
|
"pistolet": "Pistolet",
|
||||||
|
"simpleaction": "Simple Action",
|
||||||
|
"doubleaction": "Double Action",
|
||||||
|
"doublecanon": "Double Canon",
|
||||||
|
"semiauto": "Semin Automatique",
|
||||||
|
"auto": "Automatique",
|
||||||
|
"manuel": "Manuel",
|
||||||
|
"verrou": "Verrou",
|
||||||
|
"special": "Spéciale",
|
||||||
|
"legere": "Légère",
|
||||||
|
"lourde": "Lourde",
|
||||||
|
"explosif": "Explosif"
|
||||||
|
},
|
||||||
|
armeLegalite: {
|
||||||
|
"libre": "Libre (L)",
|
||||||
|
"controlee": "Contrôlée (C)",
|
||||||
|
"prohibee": "Prohibée (P)"
|
||||||
|
},
|
||||||
|
armeDissimulation :{
|
||||||
|
"tresfacile": "Très facile (TF)",
|
||||||
|
"facile": "Facile (F)",
|
||||||
|
"difficile": "Difficile (D)",
|
||||||
|
"impossible": "Impossible (I)"
|
||||||
|
},
|
||||||
|
typeProtection : {
|
||||||
|
"balle": "Protège ds balles",
|
||||||
|
"melee": "Protège en mélée",
|
||||||
|
"tout": "Tout type de dégats"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -12,6 +12,9 @@ export const defaultItemImg = {
|
|||||||
protection: "systems/fvtt-les-heritiers/assets/icons/protection.webp",
|
protection: "systems/fvtt-les-heritiers/assets/icons/protection.webp",
|
||||||
atoutfeerique: "systems/fvtt-les-heritiers/assets/icons/fairy_atout.webp",
|
atoutfeerique: "systems/fvtt-les-heritiers/assets/icons/fairy_atout.webp",
|
||||||
capacitenaturelle: "systems/fvtt-les-heritiers/assets/icons/natural_capacity.webp",
|
capacitenaturelle: "systems/fvtt-les-heritiers/assets/icons/natural_capacity.webp",
|
||||||
|
arme: "systems/fvtt-les-heritiers/assets/icons/weapon.webp",
|
||||||
|
accessoire: "systems/fvtt-les-heritiers/assets/icons/item.webp",
|
||||||
|
protection: "systems/fvtt-les-heritiers/assets/icons/armor.webp",
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -12,9 +12,27 @@
|
|||||||
|
|
||||||
<ul class="item-list alternate-list">
|
<ul class="item-list alternate-list">
|
||||||
|
|
||||||
{{> systems/fvtt-les-heritiers/templates/partial-item-prix.html}}
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Lieu : </label>
|
||||||
|
<input type="text" class="item-field-label-long" name="system.lieu"
|
||||||
|
value="{{system.lieu}}" data-dtype="String" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Prix : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.prix"
|
||||||
|
value="{{system.prix}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Quantité : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.quantite"
|
||||||
|
value="{{system.quantite}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Equipé ? : </label>
|
||||||
|
<input type="checkbox" class="padd-right status-small-label color-class-common item-field-label-short"
|
||||||
|
name="system.equipped" {{checked system.equipped}}/>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -11,77 +11,125 @@
|
|||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
|
|
||||||
<ul class="item-list alternate-list">
|
<ul class="item-list alternate-list">
|
||||||
|
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label item-field-label-long">Type d'arme : </label>
|
<label class="item-field-label-long">Catégorie : </label>
|
||||||
<select class="item-field-label-long" type="text" name="system.typearme"
|
<select class="item-field-label-long" type="text" name="system.categorie"
|
||||||
value="{{system.typearme}}" data-dtype="string">
|
value="{{system.categorie}}" data-dtype="string">
|
||||||
{{#select system.typearme}}
|
{{#select system.categorie}}
|
||||||
<option value="contact">Arme de contact</option>
|
{{#each config.categorieArme as |categ key|}}
|
||||||
<option value="contactjet">Arme de contact et de Jet</option>
|
<option value="{{key}}">{{categ}}</option>
|
||||||
<option value="jet">Arme de Jet</option>
|
{{/each}}
|
||||||
<option value="tir">Arme de Tir</option>
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="item-field-label-long">Type : </label>
|
||||||
|
<select class="item-field-label-long" type="text" name="system.armetype"
|
||||||
|
value="{{system.armetype}}" data-dtype="string">
|
||||||
|
{{#select system.armetype}}
|
||||||
|
{{#each config.typeArme as |type key|}}
|
||||||
|
<option value="{{key}}">{{type}}</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="item-field-label-long">Degats : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.degats" value="{{system.degats}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Precision : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.precision"
|
||||||
|
value="{{system.precision}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Cadence : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.cadence"
|
||||||
|
value="{{system.cadence}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Enraiement : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.enraiement"
|
||||||
|
value="{{system.enraiement}}" data-dtype="String" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Magasin : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.magasin"
|
||||||
|
value="{{system.magasin}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Charge : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.charge"
|
||||||
|
value="{{system.charge}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Portée : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.portee"
|
||||||
|
value="{{system.portee}}" data-dtype="String" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Légalité : </label>
|
||||||
|
<select class="item-field-label-long" type="text" name="system.legalite"
|
||||||
|
value="{{system.legalite}}" data-dtype="string">
|
||||||
|
{{#select system.legalite}}
|
||||||
|
{{#each config.armeLegalite as |legal key|}}
|
||||||
|
<option value="{{key}}">{{legal}}</option>
|
||||||
|
{{/each}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label item-field-label-long">Bonus offensif : </label>
|
<label class="generic-label item-field-label-long">Dissimulation : </label>
|
||||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.bonusmaniementoff"
|
<select class="item-field-label-long" type="text" name="system.dissimulation"
|
||||||
value="{{system.bonusmaniementoff}}" data-dtype="Number" />
|
value="{{system.dissimulation}}" data-dtype="string">
|
||||||
|
{{#select system.dissimulation}}
|
||||||
|
{{#each config.armeDissimulation as |diss key|}}
|
||||||
|
<option value="{{key}}">{{diss}}</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label item-field-label-long">Seuil de Défense : </label>
|
<label class="generic-label item-field-label-long">Zone : </label>
|
||||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.seuildefense"
|
<input type="text" class="item-field-label-short" name="system.zone"
|
||||||
value="{{system.seuildefense}}" data-dtype="Number" />
|
value="{{system.zone}}" data-dtype="Number" />
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label item-field-label-long2">1 niveau de Combativité au maximum ? </label>
|
<label class="generic-label item-field-label-long">Temps : </label>
|
||||||
<input type="checkbox" name="system.onlevelonly" {{checked system.onlevelonly}} />
|
<input type="text" class="item-field-label-long" name="system.temps"
|
||||||
</li>
|
value="{{system.temps}}" data-dtype="String" />
|
||||||
{{#if system.onlevelonly}}
|
|
||||||
{{else}}
|
|
||||||
<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="String" />
|
|
||||||
</li>
|
|
||||||
{{/if}}
|
|
||||||
<li class="flexrow item">
|
|
||||||
<label class="generic-label item-field-label-long">A deux mains ? </label>
|
|
||||||
<input type="checkbox" name="system.deuxmains" {{checked system.deuxmains}} />
|
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label item-field-label-long">Perce Armure ? </label>
|
<label class="generic-label item-field-label-long">Allumage : </label>
|
||||||
<input type="checkbox" name="system.percearmure" {{checked system.percearmure}} />
|
<input type="text" class="item-field-label-long" name="system.allumage"
|
||||||
</li>
|
value="{{system.allumage}}" data-dtype="String" />
|
||||||
{{#if system.percearmure}}
|
|
||||||
<li class="flexrow item">
|
|
||||||
<label class="generic-label item-field-label-long2">Valeur de Perce Armure : </label>
|
|
||||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.percearmurevalue"
|
|
||||||
value="{{system.percearmurevalue}}" data-dtype="Number" />
|
|
||||||
</li>
|
|
||||||
{{/if}}
|
|
||||||
<li class="flexrow item">
|
|
||||||
<label class="generic-label item-field-label-long">Portée courte </label>
|
|
||||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.courte"
|
|
||||||
value="{{system.courte}}" data-dtype="Number" />
|
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
<li class="flexrow item">
|
||||||
<label class="generic-label item-field-label-long">Portée moyenne </label>
|
<label class="generic-label item-field-label-long">Special : </label>
|
||||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.moyenne"
|
<input type="text" class="item-field-label-long" name="system.special"
|
||||||
value="{{system.moyenne}}" data-dtype="Number" />
|
value="{{system.special}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow item">
|
|
||||||
<label class="generic-label item-field-label-long">Portée longue </label>
|
<li class="flexrow item">
|
||||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.longue"
|
<label class="generic-label item-field-label-long">Prix : </label>
|
||||||
value="{{system.longue}}" data-dtype="Number" />
|
<input type="text" class="item-field-label-short" name="system.prix"
|
||||||
</li>
|
value="{{system.prix}}" data-dtype="Number" />
|
||||||
<li class="flexrow item">
|
</li>
|
||||||
<label class="generic-label item-field-label-long2">Temps de rechargement </label>
|
|
||||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.tr" value="{{system.tr}}"
|
<li class="flexrow item">
|
||||||
data-dtype="Number" />
|
<label class="generic-label item-field-label-long">Quantité : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.quantite"
|
||||||
|
value="{{system.quantite}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Equipé ? : </label>
|
||||||
|
<input type="checkbox" class="padd-right status-small-label color-class-common item-field-label-short"
|
||||||
|
name="system.equipped" {{checked system.equipped}}/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{{> systems/fvtt-les-heritiers/templates/partial-item-prix.html}}
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -11,18 +11,60 @@
|
|||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
|
|
||||||
<ul class="item-list alternate-list">
|
<ul class="item-list alternate-list">
|
||||||
<li class="flexrow item">
|
|
||||||
<label class="generic-label item-field-label-long">Protection : </label>
|
|
||||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.protection"
|
|
||||||
value="{{system.protection}}" data-dtype="Number" />
|
|
||||||
</li>
|
|
||||||
<li class="flexrow item">
|
|
||||||
<label class="generic-label item-field-label-long2">Adversités dues au poids : </label>
|
|
||||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.adversitepoids"
|
|
||||||
value="{{system.adversitepoids}}" data-dtype="Number" />
|
|
||||||
</li>
|
|
||||||
|
|
||||||
{{> systems/fvtt-les-heritiers/templates/partial-item-prix.html}}
|
<li class="flexrow item">
|
||||||
|
<label class="item-field-label-long">Type : </label>
|
||||||
|
<select class="item-field-label-long" type="text" name="system.protectiontype"
|
||||||
|
value="{{system.protectiontype}}" data-dtype="string">
|
||||||
|
{{#select system.protectiontype}}
|
||||||
|
{{#each config.typeProtection as |prot key|}}
|
||||||
|
<option value="{{key}}">{{prot}}</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="item-field-label-long">Valeur de protection : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.points" value="{{system.points}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Effets secondaires : </label>
|
||||||
|
<input type="text" class="item-field-label-long" name="system.effetsecondaire"
|
||||||
|
value="{{system.effetsecondaire}}" data-dtype="String" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Malus d'agilité : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.malusagilite"
|
||||||
|
value="{{system.malusagilite}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Dissimulation : </label>
|
||||||
|
<select class="item-field-label-long" type="text" name="system.dissimulation"
|
||||||
|
value="{{system.dissimulation}}" data-dtype="string">
|
||||||
|
{{#select system.dissimulation}}
|
||||||
|
{{#each config.armeDissimulation as |diss key|}}
|
||||||
|
<option value="{{key}}">{{diss}}</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Prix : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.prix"
|
||||||
|
value="{{system.prix}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Quantité : </label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.quantite"
|
||||||
|
value="{{system.quantite}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="generic-label item-field-label-long">Equipé ? : </label>
|
||||||
|
<input type="checkbox" class="padd-right status-small-label color-class-common item-field-label-short"
|
||||||
|
name="system.equipped" {{checked system.equipped}}/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user