Fix Tentacules/Tentacules(Tentacules)
Pour les créatures, les jets de compétences n'affichent plus que la compétence
This commit is contained in:
parent
f3e1a9bf8c
commit
039cb8ab71
@ -278,15 +278,21 @@ export class RdDRoll extends Dialog {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
_getTitle(rollData) {
|
_getTitle(rollData) {
|
||||||
if (rollData.competence) {
|
const carac = rollData.selectedCarac.label;
|
||||||
// If a weapon is there, add it in the title
|
if (!rollData.competence) {
|
||||||
let armeTitle = (rollData.arme) ? " (" + rollData.arme.name + ") " : "";
|
return carac;
|
||||||
let niveau = Misc.toSignedString(rollData.competence.data.niveau);
|
|
||||||
return rollData.selectedCarac.label + "/" + rollData.competence.name + armeTitle + " " + niveau
|
|
||||||
}
|
}
|
||||||
if (rollData.draconicList) {
|
const compName = rollData.competence.name;
|
||||||
return rollData.competence.name + " - " + rollData.selectedSort.name;
|
if (rollData.draconicList && rollData.selectedSort) {
|
||||||
|
return compName + " - " + rollData.selectedSort.name;
|
||||||
}
|
}
|
||||||
return rollData.selectedCarac.label;
|
// If a weapon is there, add it in the title
|
||||||
|
const niveau = Misc.toSignedString(rollData.competence.data.niveau);
|
||||||
|
if (compName == carac) {
|
||||||
|
// cas des créatures
|
||||||
|
return carac + " " + niveau
|
||||||
|
}
|
||||||
|
const armeTitle = (rollData.arme) ? " (" + rollData.arme.name + ") " : "";
|
||||||
|
return carac + "/" + compName + armeTitle + " " + niveau
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{{log "handlebar dialog-competence" this}}
|
|
||||||
<form class="skill-roll-dialog">
|
<form class="skill-roll-dialog">
|
||||||
<h2 class="compdialog" id="compdialogTitle"></h2>
|
<h2 class="compdialog" id="compdialogTitle"></h2>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
Loading…
Reference in New Issue
Block a user