Fix armes de tir
This commit is contained in:
parent
2bfc6ed124
commit
43ca970dbd
@ -37,6 +37,7 @@ export class VadentisActorSheet extends ActorSheet {
|
||||
data.armes = this.actor.getArmes();
|
||||
data.armures = this.actor.getArmures();
|
||||
data.equipements = this.actor.getEquipements();
|
||||
data.monnaies = this.actor.getMonnaies();
|
||||
|
||||
data.optionsBase = VadentisUtility.createDirectOptionList(0, 50);
|
||||
data.optionsMalus = VadentisUtility.createDirectReverseOptionList(-50, 0);
|
||||
|
@ -85,6 +85,10 @@ export class VadentisActor extends Actor {
|
||||
getArmures() {
|
||||
return this.data.items.filter( item => item.type == 'armurebouclier' );
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
getMonnaies() {
|
||||
return this.data.items.filter( item => item.type == 'monnaie' );
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async updateCompetence( name, field, value) {
|
||||
|
@ -1,12 +1,12 @@
|
||||
{"name":"Arc long","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":150,"type":"jetdeuxmain","damage":"1D8","criticaldamage":"","munition":"Flèches","distance":"60m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"149r9qSlp9jc18AT"}
|
||||
{"name":"Arc court","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":150,"type":"jetdeuxmain","damage":"1D6","criticaldamage":"","munition":"Flèches","distance":"40m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"1utoOckG2dfPMdm0"}
|
||||
{"name":"Sarbacane","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":60,"type":"jetunemain","damage":"1D6","criticaldamage":"","munition":"Fléchettes","distance":"15m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"8dQ5Cx4uJPImYkRa"}
|
||||
{"name":"Pistoler rafale","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":150,"type":"feuunemain","damage":"3D4","criticaldamage":"","munition":"Orbes élémentaires de Feu","distance":"15m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"DT0wnNk429QrNB1o"}
|
||||
{"name":"Boomerang","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"<p>Si le jet d'Attaque avec le boomerang dépasse 15, le boomerang revient vers l'utilisateur </p>","enc":0,"cost":60,"type":"jetunemain","damage":"1D4","criticaldamage":"","munition":"","distance":"20m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"E3H5OmocGONlfNKc"}
|
||||
{"name":"Fusil","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":230,"type":"feudeuxmains","damage":"2D8","criticaldamage":"","munition":"Orbes élémentaires de Feu","distance":"15m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"JBez0rVYg03L3fcF"}
|
||||
{"name":"Arbalète de poing","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":120,"type":"jetunemain","damage":"1D6","criticaldamage":"","munition":"Petits carreaux","distance":"30m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"NEzgTLHHDGzq1c2E"}
|
||||
{"name":"Shuriken","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":80,"type":"jetunemain","damage":"1D6","criticaldamage":"","munition":"","distance":"15m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"TLe4fB9A15PkRwUc"}
|
||||
{"name":"Arbalète","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":150,"type":"jetdeuxmain","damage":"1D8","criticaldamage":"","munition":"Carreaux","distance":"60m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"cAl9BCDhWogcMjdA"}
|
||||
{"name":"Senbon","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":60,"type":"jetunemain","damage":"1D4","criticaldamage":"","munition":"","distance":"15m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"h2cqYZDUWSYZUqW1"}
|
||||
{"name":"Pistolet","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"","enc":0,"cost":120,"type":"feuunemain","damage":"1d8","criticaldamage":"","munition":"Orbes élémentaires de Feu","distance":"20m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"oQPSW5XWhy0Hu2JW"}
|
||||
{"name":"Fusil de précision","permission":{"default":0,"0FETyDL9AqSwhPI5":3},"type":"tir","data":{"equipee":false,"description":"<p>Un tour entie est nécessaire pour recharger l'arme. </p>","enc":0,"cost":250,"type":"feudeuxmains","damage":"2D6","criticaldamage":"","munition":"Orbes élémentaires de Feu","distance":"80m"},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"pKQERwE0YAQs6xSo"}
|
||||
{"name":"Boomerang","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"<p>Si le jet d'Attaque avec le boomerang dépasse 15, le boomerang revient vers l'utilisateur </p>","enc":0,"cost":60,"type":"jetunemain","damage":"1D4","criticaldamage":"2D4","munition":1,"distance":"20m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"7NLMTRV3JCpsSP10"}
|
||||
{"name":"Arc court","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"","enc":0,"cost":150,"type":"jetdeuxmain","damage":"1D6","criticaldamage":"2d6","munition":0,"distance":"40m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"8CEFHCG5gFdh6XuE"}
|
||||
{"name":"Arc long","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"","enc":0,"cost":150,"type":"jetdeuxmain","damage":"1D8","criticaldamage":"2D8","munition":0,"distance":"60m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"NSyDmjn0JJzdmFjS"}
|
||||
{"name":"Arbalète de poing","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"","enc":0,"cost":120,"type":"jetunemain","damage":"1D6","criticaldamage":"2D6","munition":0,"distance":"30m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"RnvXM0G37ZGhWfGx"}
|
||||
{"name":"Fusil de précision","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"<p>Un tour entie est nécessaire pour recharger l'arme. </p>","enc":0,"cost":250,"type":"feudeuxmains","damage":"2D6","criticaldamage":"3D6","munition":0,"distance":"80m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"cI8eRHPfC4cZV4Vr"}
|
||||
{"_id":"fSqJgYVSTMk5ztBM","name":"Arbalète","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":null,"equipee":false,"description":"","enc":0,"cost":150,"type":"jetdeuxmain","damage":"1D8","criticaldamage":"2d8","munition":0,"distance":"60m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[]}
|
||||
{"name":"Senbon","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"","enc":0,"cost":60,"type":"jetunemain","damage":"1D4","criticaldamage":"2D4","munition":0,"distance":"15m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"fp5aEALQrGQpt5Cz"}
|
||||
{"name":"Pistolet","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"","enc":0,"cost":120,"type":"feuunemain","damage":"1d8","criticaldamage":"2d8","munition":0,"distance":"20m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"lWJtovlOCugtpBKW"}
|
||||
{"name":"Sarbacane","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"","enc":0,"cost":60,"type":"jetunemain","damage":"1D6","criticaldamage":"2D6","munition":0,"distance":"15m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"qh0xEYTL0JeXa2Op"}
|
||||
{"name":"Pistoler rafale","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"","enc":0,"cost":150,"type":"feuunemain","damage":"3D4","criticaldamage":"4D4","munition":0,"distance":"15m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"tHhCs8Rv8PnZAqiz"}
|
||||
{"name":"Fusil","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"","enc":0,"cost":230,"type":"feudeuxmains","damage":"2D8","criticaldamage":"3D8","munition":0,"distance":"15m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"tgiS4o44uOukwOPv"}
|
||||
{"name":"Shuriken","permission":{"default":0,"sCecJLVlaPEcY7nF":3},"type":"tir","data":{"quantite":1,"equipee":false,"description":"","enc":0,"cost":80,"type":"jetunemain","damage":"1D6","criticaldamage":"2D6","munition":1,"distance":"15m","valuecritical":20},"flags":{},"img":"systems/foundryvtt-vadentis/images/icons/icone_item_armes_tir.webp","effects":[],"_id":"yJcJLbOMIpECvB44"}
|
||||
|
@ -2,11 +2,11 @@
|
||||
"name": "foundryvtt-vadentis",
|
||||
"title": "Vadentis",
|
||||
"description": "Système Vadentis pour FoundryVTT",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.4",
|
||||
"manifestPlusVersion": "1.0.0",
|
||||
"minimumCoreVersion": "0.7.5",
|
||||
"compatibleCoreVersion": "0.7.9",
|
||||
"templateVersion": 16,
|
||||
"templateVersion": 17,
|
||||
"author": "Uberwald",
|
||||
"esmodules": [ "modules/vadentis-main.js" ],
|
||||
"styles": ["styles/simple.css"],
|
||||
|
@ -91,7 +91,7 @@
|
||||
}
|
||||
},
|
||||
"Item": {
|
||||
"types": ["competence", "attribut", "technique", "sort", "devotion", "armecc", "tir", "armurebouclier", "equipement", "donnee", "eglise" ],
|
||||
"types": ["competence", "attribut", "technique", "sort", "devotion", "armecc", "tir", "armurebouclier", "equipement", "donnee", "eglise", "monnaie" ],
|
||||
"templates": {
|
||||
"sortcommun": {
|
||||
"xp": 0,
|
||||
@ -174,6 +174,11 @@
|
||||
},
|
||||
"equipement": {
|
||||
"templates": [ "equipcommun" ]
|
||||
},
|
||||
"monnaie": {
|
||||
"nombre": 0,
|
||||
"enc": 0,
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -319,6 +319,20 @@
|
||||
|
||||
{{!-- Equipement Tab --}}
|
||||
<div class="tab equipement" data-group="primary" data-tab="equipement">
|
||||
<div><h4>Argent</h4></div>
|
||||
<ul class="item-list alternate-list">
|
||||
{{#each monnaies as |monnaie key|}}
|
||||
<li class="item flexrow list-item" data-item-id="{{monnaie._id}}">
|
||||
<img class="sheet-competence-img" src="{{monnaie.img}}"/>
|
||||
<span class="arme-label">{{monnaie.name}}</span>
|
||||
<span class="arme-label">{{monnaie.data.nombre}}</span>
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<div><h4>Armes</h4></div>
|
||||
<ul class="item-list alternate-list">
|
||||
{{#each armes as |arme key|}}
|
||||
@ -353,6 +367,7 @@
|
||||
<li class="item flexrow list-item" data-item-id="{{equipement._id}}">
|
||||
<img class="sheet-competence-img" src="{{equipement.img}}"/>
|
||||
<span class="equipement-label">{{equipement.name}}</span>
|
||||
<span class="equipement-label">{{equipement.data.quantite}}</span>
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-equip" title="Worn">{{#if equipement.data.equipee}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
|
19
templates/item-monnaie-sheet.html
Normal file
19
templates/item-monnaie-sheet.html
Normal file
@ -0,0 +1,19 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
<li class="flexrow"><label class="generic-label">Nombre</label><input type="text" name="data.nombre" value="{{data.nombre}}" data-dtype="Number"/></li>
|
||||
<li class="flexrow"><label class="generic-label">Encombrement</label><input type="text" name="data.enc" value="{{data.enc}}" data-dtype="Number"/></li>
|
||||
<div class="tab" data-group="primary">
|
||||
<label class="generic-label">Description</label>
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
Loading…
Reference in New Issue
Block a user