Merge branch 'default-diffLibre' into 'v1.2'

#104 Difficulté par défaut

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!102
This commit is contained in:
Leratier Bretonnien 2021-01-04 13:49:55 +00:00
commit 35ec95a176
5 changed files with 12 additions and 2 deletions

View File

@ -39,7 +39,7 @@ export class RdDRoll extends Dialog {
carac: actor.data.data.carac,
finalLevel: 0,
diffConditions: rollData.arme ? RdDBonus.bonusAttaque(rollData.surpriseDefenseur) :0,
diffLibre: 0,
diffLibre: rollData.competence?.data.default_diffLibre ?? 0,
editLibre: true,
editConditions: true,
forceValue: actor.getForceValue(),

View File

@ -5,7 +5,7 @@
"version": "1.2.0",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.8",
"templateVersion": 77,
"templateVersion": 78,
"author": "LeRatierBretonnien",
"esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ],
"styles": ["styles/simple.css"],

View File

@ -599,6 +599,7 @@
},
"competence": {
"niveau": 0,
"default_diffLibre": 0,
"base": 0,
"categorie": "",
"xp": 0,
@ -610,6 +611,7 @@
"competencecreature": {
"categorie_parade": "",
"niveau": 0,
"default_diffLibre": 0,
"carac_value": 0,
"iscombat": false,
"isparade": false,

View File

@ -46,6 +46,10 @@
{{/select}}
</select>
</div>
<div class="form-group">
<label for="default_diffLibre">Difficulté libre par défaut</label>
<input class="attribute-value" type="text" name="data.default_diffLibre" value="{{data.default_diffLibre}}" data-dtype="Number"/>
</div>
{{#if (eq data.categorie 'draconic')}}
<div class="form-group">
<label for="xp">XP Sort </label>

View File

@ -16,6 +16,10 @@
<label for="niveau">Valeur de Caractéristique </label>
<input class="attribute-value" type="text" name="data.carac_value" value="{{data.carac_value}}" data-dtype="Number"/>
</div>
<div class="form-group">
<label for="default_diffLibre">Difficulté libre par défaut</label>
<input class="attribute-value" type="text" name="data.default_diffLibre" value="{{data.default_diffLibre}}" data-dtype="Number"/>
</div>
<div class="form-group">
<label for="xp">Arme ? </label>
<input class="attribute-value" type="checkbox" name="data.iscombat" {{#if data.iscombat}}checked{{/if}}/>