Ajout sorts + saisie

This commit is contained in:
LeRatierBretonnien 2020-06-26 15:47:44 +02:00
parent 3a5a3e9cc5
commit 58f692447e
7 changed files with 106 additions and 10 deletions

View File

@ -27,17 +27,18 @@ long_line_behaviour=1
long_line_column=72 long_line_column=72
[files] [files]
current_page=0 current_page=5
FILE_NAME_0=8694;JSON;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplate.json;0;2 FILE_NAME_0=9147;JSON;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplate.json;0;2
FILE_NAME_1=3682;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Factor-sheet.js;0;2 FILE_NAME_1=3682;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Factor-sheet.js;0;2
FILE_NAME_2=17891;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Factor-sheet.html;0;2 FILE_NAME_2=17891;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Factor-sheet.html;0;2
FILE_NAME_3=13913;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Factor.js;0;2 FILE_NAME_3=13913;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Factor.js;0;2
FILE_NAME_4=416;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fdialog-roll-carac.html;0;2 FILE_NAME_4=416;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fdialog-roll-carac.html;0;2
FILE_NAME_5=20216;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Frdd-utility.js;0;2 FILE_NAME_5=5840;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Frdd-utility.js;0;2
FILE_NAME_6=135;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Frdd-main.js;0;2 FILE_NAME_6=135;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Frdd-main.js;0;2
FILE_NAME_7=1639;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fitem-competence-sheet.html;0;2 FILE_NAME_7=617;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fitem-competence-sheet.html;0;2
FILE_NAME_8=487;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fitem-armure-sheet.html;0;2 FILE_NAME_8=1217;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fitem-sort-sheet.html;0;2
FILE_NAME_9=1122;Javascript;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Fmodule%2Fitem-sheet.js;0;2 FILE_NAME_9=160;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fsort-draconic.html;0;2
FILE_NAME_10=284;HTML;0;EUTF-8;0;1;0;%2Fhome%2Fsigmar%2Fwork%2Ffoundryvtt%2Ffoundryvtt-reve-de-dragon%2Ftemplates%2Fsort-tmr.html;0;2
[VTE] [VTE]
last_dir=/home/sigmar last_dir=/home/sigmar

View File

@ -80,10 +80,13 @@ export class RdDUtility {
'systems/foundryvtt-reve-de-dragon/templates/item-armure-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/item-armure-sheet.html',
'systems/foundryvtt-reve-de-dragon/templates/item-objet-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/item-objet-sheet.html',
'systems/foundryvtt-reve-de-dragon/templates/item-conteneur-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/item-conteneur-sheet.html',
'systems/foundryvtt-reve-de-dragon/templates/item-sort-sheet.html',
'systems/foundryvtt-reve-de-dragon/templates/competence-categorie.html', 'systems/foundryvtt-reve-de-dragon/templates/competence-categorie.html',
'systems/foundryvtt-reve-de-dragon/templates/competence-carac-defaut.html', 'systems/foundryvtt-reve-de-dragon/templates/competence-carac-defaut.html',
'systems/foundryvtt-reve-de-dragon/templates/competence-base.html', 'systems/foundryvtt-reve-de-dragon/templates/competence-base.html',
'systems/foundryvtt-reve-de-dragon/templates/arme-competence.html', 'systems/foundryvtt-reve-de-dragon/templates/arme-competence.html',
'systems/foundryvtt-reve-de-dragon/templates/sort-draconic.html',
'systems/foundryvtt-reve-de-dragon/templates/sort-tmr.html',
// Dialogs // Dialogs
'systems/foundryvtt-reve-de-dragon/templates/dialog-competence.html', 'systems/foundryvtt-reve-de-dragon/templates/dialog-competence.html',
'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-carac.html' 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-carac.html'

View File

@ -2,10 +2,10 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "L'implémentation de Rêve de Dragon pour FoundryVTT", "description": "L'implémentation de Rêve de Dragon pour FoundryVTT",
"version": "0.7.6", "version": "0.7.7",
"minimumCoreVersion": "0.6.0", "minimumCoreVersion": "0.6.0",
"compatibleCoreVersion": "0.6.2", "compatibleCoreVersion": "0.6.2",
"templateVersion": 15, "templateVersion": 16,
"author": "LeRatierBretonnien", "author": "LeRatierBretonnien",
"esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ], "esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ],
"styles": ["styles/simple.css"], "styles": ["styles/simple.css"],

View File

@ -346,13 +346,20 @@
"sort": { "sort": {
"description": "", "description": "",
"draconic": "", "draconic": "",
"difficulte": 0, "duree": "",
"portée": 0 "JR": "",
"cible": "",
"difficulte": "",
"portée": "",
"caseTMR": "",
"caseTMRspeciale": "",
"ptreve": ""
}, },
"herbe": { "herbe": {
"description": "", "description": "",
"niveau": 0, "niveau": 0,
"base": 0, "base": 0,
"quantite": 1,
"cout": 0 "cout": 0
}, },
"ingredient": { "ingredient": {
@ -360,6 +367,7 @@
"niveau": 0, "niveau": 0,
"encombrement": 0, "encombrement": 0,
"base": 0, "base": 0,
"quantite": 1,
"cout": 0 "cout": 0
}, },
"tache": { "tache": {
@ -372,6 +380,7 @@
"livre": { "livre": {
"description": "", "description": "",
"auteur": "", "auteur": "",
"quantite": 1,
"difficulte": 0, "difficulte": 0,
"points_de_tache": 0, "points_de_tache": 0,
"encombrement": 0, "encombrement": 0,
@ -379,6 +388,7 @@
}, },
"potion": { "potion": {
"description": "", "description": "",
"quantite": 1,
"encombrement": 0, "encombrement": 0,
"cout": 0 "cout": 0
} }

View File

@ -0,0 +1,63 @@
<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">
<div class="form-group">
<label for="categorie">Draconic </label>
<select name="data.draconic" id="draconic" data-dtype="String">
{{#select item.data.draconic}}
{{>"systems/foundryvtt-reve-de-dragon/templates/sort-draconic.html"}}
{{/select}}
</select>
</div>
<div class="form-group">
<label for="xp">Case TMR </label>
<select name="data.caseTMR" id="caseTMR" data-dtype="String">
{{#select item.data.caseTMR}}
{{>"systems/foundryvtt-reve-de-dragon/templates/sort-tmr.html"}}
{{/select}}
</select>
</div>
<div class="form-group">
<label for="xp">Case TMR Spéciale </label>
<input class="attribute-value" type="text" name="data.caseTMRspeciale" value="{{data.caseTMRspeciale}}" data-dtype="String"/>
</div>
<div class="form-group">
<label for="xp">Difficulté </label>
<input class="attribute-value" type="text" name="data.difficulte" value="{{data.difficulte}}" data-dtype="String"/>
</div>
<div class="form-group">
<label for="xp">Coût en Rêve </label>
<input class="attribute-value" type="text" name="data.ptreve" value="{{data.ptreve}}" data-dtype="String"/>
</div>
<div class="form-group">
<label for="xp">Durée </label>
<input class="attribute-value" type="text" name="data.duree" value="{{data.duree}}" data-dtype="String"/>
</div>
<div class="form-group">
<label for="xp">Portée </label>
<input class="attribute-value" type="text" name="data.portee" value="{{data.portee}}" data-dtype="String"/>
</div>
<div class="form-group">
<label for="xp">Cible </label>
<input class="attribute-value" type="text" name="data.cible" value="{{data.cible}}" data-dtype="String"/>
</div>
<div class="form-group">
<label for="xp">Jet de Resistance</label>
<input class="attribute-value" type="text" name="data.JR" value="{{data.JR}}" data-dtype="String"/>
</div>
<header class="header-field">
<span>Description : </span>
</header>
<div class="form-group" style="height:200px">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</section>
</form>

View File

@ -0,0 +1,4 @@
<option value="oniros">Oniros</option>
<option value="hypnos">Hypnos</option>
<option value="narcos">Narcos</option>
<option value="thanatos">Thanatos</option>

15
templates/sort-tmr.html Normal file
View File

@ -0,0 +1,15 @@
<option value="cite">Cité</option>
<option value="collines">Collines</option>
<option value="desert">Désert</option>
<option value="desolation">Désolation</option>
<option value="fleuve">Fleuve</option>
<option value="foret">Forêt</option>
<option value="gouffre">Gouffre</option>
<option value="lac">Lac</option>
<option value="marais">Marais</option>
<option value="monts">Monts</option>
<option value="necropole">Nécropole</option>
<option value="plaines">Plaines</option>
<option value="pont">Pont</option>
<option value="sanctuaire">Sanctuaire</option>
<option value="special">Case spéciale TMR (saisie ci-dessous)</option>