Compare commits
1 Commits
896fa512b5
...
13.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
| a04032e002 |
@@ -93,6 +93,18 @@ export class YggdrasillRollDialog {
|
|||||||
$("#srTotal").text(rollData.srTotal)
|
$("#srTotal").text(rollData.srTotal)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pour armes : mettre à jour l'effet affiché quand le type d'attaque change
|
||||||
|
if (rollData.mode === "armecc" || rollData.mode === "armetir" || rollData.mode === "armedist") {
|
||||||
|
$("#typeAttack").on("change", () => {
|
||||||
|
rollData.attackDef = rollData.attackDef || {}
|
||||||
|
rollData.attackDef.typeAttack = $("#typeAttack").val()
|
||||||
|
this._updateAttackData(rollData, actor)
|
||||||
|
$("#attackDescr").text(rollData.attackData.description || "")
|
||||||
|
$("#caracName").text(`${rollData.attackData.categName || ""} / ${rollData.attackData.caracName || ""}`)
|
||||||
|
$("#malus").text(rollData.attackData.malus ?? 0)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// Pour Sejdr: recalculer srTotal quand DM change
|
// Pour Sejdr: recalculer srTotal quand DM change
|
||||||
if (rollData.mode === "sejdr") {
|
if (rollData.mode === "sejdr") {
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user