Ajout tarot et autres
This commit is contained in:
parent
ed62f00959
commit
aa02ab878d
@ -67,6 +67,9 @@ export class MaleficesRollDialog extends Dialog {
|
||||
html.find('#bonusMalusDef').change((event) => {
|
||||
this.rollData.bonusMalusDef = Number(event.currentTarget.value)
|
||||
})
|
||||
|
||||
html.find('#bonusMalusPortee').change((event) => {
|
||||
this.rollData.bonusMalusPortee = Number(event.currentTarget.value)
|
||||
})
|
||||
|
||||
}
|
||||
}
|
@ -469,7 +469,7 @@ export class MaleficesUtility {
|
||||
|
||||
// Build the dice formula
|
||||
let diceFormula = "1d20"
|
||||
rollData.target = rollData.attr.value + rollData.bonusMalusPerso + rollData.bonusMalusSituation + rollData.bonusMalusDef
|
||||
rollData.target = rollData.attr.value + rollData.bonusMalusPerso + rollData.bonusMalusSituation + rollData.bonusMalusDef + rollData.bonusMalusPortee
|
||||
if (rollData.attr.abbrev == "physique") {
|
||||
rollData.target += rollData.phyMalus
|
||||
}
|
||||
@ -598,6 +598,7 @@ export class MaleficesUtility {
|
||||
bonusMalusPerso: 0,
|
||||
bonusMalusSituation: 0,
|
||||
bonusMalusDef: 0,
|
||||
bonusMalusPortee: 0,
|
||||
rollMode: game.settings.get("core", "rollMode")
|
||||
}
|
||||
MaleficesUtility.updateWithTarget(rollData)
|
||||
|
@ -55,7 +55,7 @@
|
||||
],
|
||||
"title": "Maléfices, le Jeu de Rôle",
|
||||
"url": "https://www.uberwald.me/gitea/public/fvtt-malefices",
|
||||
"version": "10.0.5",
|
||||
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.5.zip",
|
||||
"version": "10.0.6",
|
||||
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.6.zip",
|
||||
"background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp"
|
||||
}
|
@ -60,6 +60,13 @@
|
||||
<span class="item-field-label-long">Points de Destin</span>
|
||||
<input type="text" class="item-field-label-short" name="system.pointdestin" value="{{system.pointdestin}}" data-dtype="Number"/>
|
||||
</li>
|
||||
|
||||
{{#if isGM}}
|
||||
<li class="item flexrow list-item">
|
||||
<span class="item-field-label-long">Fluide (MJ seulement)</span>
|
||||
<input type="text" class="item-field-label-short" name="system.fluide" value="{{system.fluide}}" data-dtype="Number"/>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -64,6 +64,17 @@
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Pörtée : </span>
|
||||
<select id="bonusMalusPortee" name="bonusMalusPortee">
|
||||
{{#select bonusMalusPortee}}
|
||||
<option value="1">+1 (Portée courte)</option>
|
||||
<option value="0">0 (Portée moyenne)</option>
|
||||
<option value="-1">-1 (Portée longue)</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user