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",
|
||||
"28": "Mythique",
|
||||
"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",
|
||||
atoutfeerique: "systems/fvtt-les-heritiers/assets/icons/fairy_atout.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",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -9,12 +9,30 @@
|
||||
{{> systems/fvtt-les-heritiers/templates/partial-item-description.html}}
|
||||
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -11,77 +11,125 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
<ul class="item-list alternate-list">
|
||||
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long">Type d'arme : </label>
|
||||
<select class="item-field-label-long" type="text" name="system.typearme"
|
||||
value="{{system.typearme}}" data-dtype="string">
|
||||
{{#select system.typearme}}
|
||||
<option value="contact">Arme de contact</option>
|
||||
<option value="contactjet">Arme de contact et de Jet</option>
|
||||
<option value="jet">Arme de Jet</option>
|
||||
<option value="tir">Arme de Tir</option>
|
||||
<label class="item-field-label-long">Catégorie : </label>
|
||||
<select class="item-field-label-long" type="text" name="system.categorie"
|
||||
value="{{system.categorie}}" data-dtype="string">
|
||||
{{#select system.categorie}}
|
||||
{{#each config.categorieArme as |categ key|}}
|
||||
<option value="{{key}}">{{categ}}</option>
|
||||
{{/each}}
|
||||
{{/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>
|
||||
</li>
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long">Bonus offensif : </label>
|
||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.bonusmaniementoff"
|
||||
value="{{system.bonusmaniementoff}}" data-dtype="Number" />
|
||||
<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">Seuil de Défense : </label>
|
||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.seuildefense"
|
||||
value="{{system.seuildefense}}" data-dtype="Number" />
|
||||
<label class="generic-label item-field-label-long">Zone : </label>
|
||||
<input type="text" class="item-field-label-short" name="system.zone"
|
||||
value="{{system.zone}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long2">1 niveau de Combativité au maximum ? </label>
|
||||
<input type="checkbox" name="system.onlevelonly" {{checked system.onlevelonly}} />
|
||||
</li>
|
||||
{{#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}} />
|
||||
<label class="generic-label item-field-label-long">Temps : </label>
|
||||
<input type="text" class="item-field-label-long" name="system.temps"
|
||||
value="{{system.temps}}" data-dtype="String" />
|
||||
</li>
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long">Perce Armure ? </label>
|
||||
<input type="checkbox" name="system.percearmure" {{checked system.percearmure}} />
|
||||
</li>
|
||||
{{#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" />
|
||||
<label class="generic-label item-field-label-long">Allumage : </label>
|
||||
<input type="text" class="item-field-label-long" name="system.allumage"
|
||||
value="{{system.allumage}}" data-dtype="String" />
|
||||
</li>
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long">Portée moyenne </label>
|
||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.moyenne"
|
||||
value="{{system.moyenne}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long">Portée longue </label>
|
||||
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.longue"
|
||||
value="{{system.longue}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow item">
|
||||
<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}}"
|
||||
data-dtype="Number" />
|
||||
<label class="generic-label item-field-label-long">Special : </label>
|
||||
<input type="text" class="item-field-label-long" name="system.special"
|
||||
value="{{system.special}}" 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>
|
||||
|
||||
{{> systems/fvtt-les-heritiers/templates/partial-item-prix.html}}
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -11,18 +11,60 @@
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
<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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user