Ajout du symbole d20, pour les roll de formule
This commit is contained in:
parent
c5633a9fc5
commit
40a47ee8a2
@ -18,7 +18,7 @@ export class TextRollFormula {
|
||||
|
||||
async onRollText(event, actor) {
|
||||
const node = TextRollManager.getNode(event)
|
||||
const rollFormula = node.data('roll-formula')
|
||||
const rollFormula = node.data('formula')
|
||||
if (rollFormula) {
|
||||
const roll = new Roll(rollFormula)
|
||||
await roll.evaluate()
|
||||
|
@ -1050,6 +1050,10 @@ a.content-link {
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
a.roll-text i.fas{
|
||||
color: var(--color-text-dark-inactive);
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
|
||||
|
||||
li label.compteur {
|
||||
|
@ -1,8 +1,8 @@
|
||||
<span class="content-link roll-text-link"
|
||||
data-code="{{param.code}}"
|
||||
data-json="{{json-stringify param}}"
|
||||
data-roll-formula="{{param.formula}}">
|
||||
<a class="roll-text">{{~param.formula~}}</a>
|
||||
data-formula="{{param.formula}}">
|
||||
<a class="roll-text"><i class="fas fa-dice-d20"></i>{{param.formula}}</a>
|
||||
{{~#if options.showlink}}
|
||||
<a class="chat-roll-text" data-tooltip="Montrer"><i class="fas fa-comment"></i></a>
|
||||
{{/if~}}
|
||||
|
@ -10,7 +10,7 @@
|
||||
<p>{{linkCompendium document.pack document.id document.name}}</p>
|
||||
{{#if document.system.formule}}
|
||||
<div class="poesie-extrait">
|
||||
[[/r {{document.system.formule}}]]
|
||||
@roll[{{document.system.formule}}]
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if document.system.description}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user