Various fixes and update template
This commit is contained in:
parent
bb4bd19f4e
commit
a6b46cb4ad
@ -184,14 +184,19 @@ export class RdDUtility {
|
|||||||
data.attributs.plusdom.value = 0;
|
data.attributs.plusdom.value = 0;
|
||||||
else if (bonusDomKey < 14)
|
else if (bonusDomKey < 14)
|
||||||
data.attributs.plusdom.value = 1;
|
data.attributs.plusdom.value = 1;
|
||||||
|
|
||||||
data.attributs.encombrement.value = (parseInt(data.carac.force.value) + parseInt(data.carac.taille.value)) / 2;
|
data.attributs.encombrement.value = (parseInt(data.carac.force.value) + parseInt(data.carac.taille.value)) / 2;
|
||||||
data.carac.melee.value = Math.floor( (parseInt(data.carac.force.value) + parseInt(data.carac.agilite.value)) / 2);
|
data.carac.melee.value = Math.floor( (parseInt(data.carac.force.value) + parseInt(data.carac.agilite.value)) / 2);
|
||||||
data.carac.tir.value = Math.floor( (parseInt(data.carac.vue.value) + parseInt(data.carac.dexterite.value)) / 2);
|
data.carac.tir.value = Math.floor( (parseInt(data.carac.vue.value) + parseInt(data.carac.dexterite.value)) / 2);
|
||||||
data.carac.lancer.value = Math.floor( (parseInt(data.carac.tir.value) + parseInt(data.carac.force.value)) / 2);
|
data.carac.lancer.value = Math.floor( (parseInt(data.carac.tir.value) + parseInt(data.carac.force.value)) / 2);
|
||||||
|
|
||||||
data.sante.vie.max = Math.ceil( parseInt(data.carac.taille.value) + parseInt(data.carac.constitution.value) /2 );
|
data.sante.vie.max = Math.ceil( parseInt(data.carac.taille.value) + parseInt(data.carac.constitution.value) /2 );
|
||||||
|
data.sante.vie.value = data.sante.vie.max;
|
||||||
let endurance = Math.max( parseInt(data.carac.taille.value) + parseInt(data.carac.constitution.value), parseInt(data.sante.vie.max) + parseInt(data.carac.volonte.value) );
|
let endurance = Math.max( parseInt(data.carac.taille.value) + parseInt(data.carac.constitution.value), parseInt(data.sante.vie.max) + parseInt(data.carac.volonte.value) );
|
||||||
data.sante.endurance.max = endurance;
|
data.sante.endurance.max = endurance;
|
||||||
|
data.sante.endurance.value = endurance;
|
||||||
|
data.sante.fatigue.max = endurance;
|
||||||
|
data.sante.fatigue.value = endurance;
|
||||||
|
|
||||||
data.attributs.sconst.value = 5; // Max !
|
data.attributs.sconst.value = 5; // Max !
|
||||||
if ( data.carac.constitution.value < 9 )
|
if ( data.carac.constitution.value < 9 )
|
||||||
@ -202,10 +207,10 @@ export class RdDUtility {
|
|||||||
data.attributs.sconst.value = 4;
|
data.attributs.sconst.value = 4;
|
||||||
|
|
||||||
data.attributs.sust.value = 4; // Max !
|
data.attributs.sust.value = 4; // Max !
|
||||||
if ( data.carac.constitution.value < 10 )
|
if ( data.carac.taille.value < 10 )
|
||||||
data.attributs.sconst.value = 2;
|
data.attributs.sust.value = 2;
|
||||||
else if (data.carac.constitution.value < 14 )
|
else if (data.carac.taille.value < 14 )
|
||||||
data.attributs.sconst.value = 3;
|
data.attributs.sust.value = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
@ -163,6 +163,27 @@
|
|||||||
"value": 10,
|
"value": 10,
|
||||||
"label": "Points de Fatigue",
|
"label": "Points de Fatigue",
|
||||||
"derivee": true
|
"derivee": true
|
||||||
|
},
|
||||||
|
"legeres": {
|
||||||
|
"nombre": 0,
|
||||||
|
"liste": [ { "premiers_soins": 0, "soins_complets": 0, "jours": 0, "localisation": "" },
|
||||||
|
{ "premiers_soins": 0, "soins_complets": 0, "jours": 0, "localisation": "" },
|
||||||
|
{ "premiers_soins": 0, "soins_complets": 0, "jours": 0, "localisation": "" },
|
||||||
|
{ "premiers_soins": 0, "soins_complets": 0, "jours": 0, "localisation": "" },
|
||||||
|
{ "premiers_soins": 0, "soins_complets": 0, "jours": 0, "localisation": "" } ]
|
||||||
|
},
|
||||||
|
"graves": {
|
||||||
|
"nombre": 0,
|
||||||
|
"liste": [ { "premiers_soins": 0, "soins_complets": 0, "jours": 0, "localisation": "" },
|
||||||
|
{ "premiers_soins": 0, "soins_complets": 0, "jours": 0, "localisation": "" } ]
|
||||||
|
},
|
||||||
|
"critiques": {
|
||||||
|
"nombre": 0,
|
||||||
|
"liste": [ { "premiers_soins": 0, "soins_complets": 0, "jours": 0, "localisation": "" } ]
|
||||||
|
},
|
||||||
|
"ethylisme": {
|
||||||
|
"value": 0,
|
||||||
|
"label": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"attributs": {
|
"attributs": {
|
||||||
@ -197,6 +218,34 @@
|
|||||||
"derivee": true
|
"derivee": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"compteurs": {
|
||||||
|
"reve": {
|
||||||
|
"max": 0,
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
"sust": {
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
"eau": {
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
"moral": {
|
||||||
|
"value": 0,
|
||||||
|
"exaltation": 0,
|
||||||
|
"dissolution": 0
|
||||||
|
},
|
||||||
|
"chance": {
|
||||||
|
"value": 0,
|
||||||
|
"destinee": 0
|
||||||
|
},
|
||||||
|
"stress": {
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
"etat": {
|
||||||
|
"value": 0,
|
||||||
|
"label": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"argent": {
|
"argent": {
|
||||||
"deniers": {
|
"deniers": {
|
||||||
"label": "Denier",
|
"label": "Denier",
|
||||||
|
@ -7,9 +7,11 @@
|
|||||||
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<div class="flex-group-center">
|
<div class="flex-group-center">
|
||||||
|
Vie
|
||||||
<input class="resource-content flexrow flex-center flex-between" type="text" name="data.sante.vie.value" value="{{data.sante.vie.value}}" data-dtype="Number"/>/{{data.sante.vie.max}}
|
<input class="resource-content flexrow flex-center flex-between" type="text" name="data.sante.vie.value" value="{{data.sante.vie.value}}" data-dtype="Number"/>/{{data.sante.vie.max}}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-center">
|
<div class="flex-group-center">
|
||||||
|
Endurance
|
||||||
<input class="resource-content flexrow flex-center flex-between" type="text" name="data.sante.fatigue.value" value="{{data.sante.fatigue.value}}" data-dtype="Number"/>/{{data.sante.fatigue.max}}
|
<input class="resource-content flexrow flex-center flex-between" type="text" name="data.sante.fatigue.value" value="{{data.sante.fatigue.value}}" data-dtype="Number"/>/{{data.sante.fatigue.max}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user