Init des créatures
This commit is contained in:
parent
c481661a32
commit
c21390bbea
@ -663,11 +663,12 @@ export class RdDUtility {
|
|||||||
} else if (arme.name == "Draconic") {
|
} else if (arme.name == "Draconic") {
|
||||||
initOffset = 7;
|
initOffset = 7;
|
||||||
} else {
|
} else {
|
||||||
initOffset = 2; // Melée = 3.XX
|
initOffset = 3; // Melée = 3.XX
|
||||||
let competence = RdDItemCompetence.findCompetence(combatant.actor.data.items, arme.data.competence);
|
let competence = RdDItemCompetence.findCompetence(combatant.actor.data.items, arme.data.competence);
|
||||||
compNiveau = competence.data.niveau;
|
compNiveau = competence.data.niveau;
|
||||||
|
|
||||||
if (actor.data.type == 'creature' || actor.data.type == 'entite') {
|
if (actor.data.type == 'creature' || actor.data.type == 'entite') {
|
||||||
|
initOffset = 3; // Melée = 3.XX
|
||||||
caracForInit = competence.data.carac_value;
|
caracForInit = competence.data.carac_value;
|
||||||
} else {
|
} else {
|
||||||
caracForInit = actor.data.data.carac[competence.data.defaut_carac].value;
|
caracForInit = actor.data.data.carac[competence.data.defaut_carac].value;
|
||||||
|
Loading…
Reference in New Issue
Block a user