This commit is contained in:
sladecraven 2022-09-27 17:18:41 +02:00
parent a43da3198b
commit a49de15a11
3 changed files with 51 additions and 1 deletions

View File

@ -259,7 +259,14 @@ export class PegasusRollDialog extends Dialog {
this.refreshDialog() this.refreshDialog()
}) })
html.find('#modifiers').change(async (event) => {
let diceKey = event.currentTarget.value
if ( !diceKey.includes("none")) {
let diceLevel = PegasusUtility.getLevelFromDice(diceKey)
PegasusUtility.addDicePool(this.rollData, diceKey, diceLevel)
this.refreshDialog()
}
})
html.find('.pool-add-dice').click(async (event) => { html.find('.pool-add-dice').click(async (event) => {
let diceKey = $(event.currentTarget).data("dice-key") let diceKey = $(event.currentTarget).data("dice-key")
let diceLevel = $(event.currentTarget).data("dice-level") let diceLevel = $(event.currentTarget).data("dice-level")

View File

@ -951,6 +951,7 @@ export class PegasusUtility {
specLevelBonus: 0, specLevelBonus: 0,
hindranceLevelBonus: 0, hindranceLevelBonus: 0,
hindranceDicesLevel: 0, hindranceDicesLevel: 0,
modifiers: "none",
otherDicesLevel: 0, otherDicesLevel: 0,
statDicesLevel: 0, statDicesLevel: 0,
specDicesLevel: 0, specDicesLevel: 0,

View File

@ -105,6 +105,48 @@
</div> </div>
{{/if}} {{/if}}
<div class="flexrow">
<span class="roll-dialog-label">Modifiers : </span>
<select class="roll-dialog-label" id="modifiers" type="text" name="modifiers" value="{{modifiers}}"
data-dtype="String">
{{#select modifiers}}
<option value="none">None</option>
<option value="none0">==== Combat Arcs</option>
<option value="d4">Combat Arc Flank (Grey) d4</option>
<option value="d6">Combat Arc Blind Spot (Red) d6</option>
<option value="d6">Slight cover d4</option>
<option value="none1">===== Cover defence</option>
<option value="d8">Half cover d8</option>
<option value="d12">Full cover d12</option>
<option value="d12">Full cover d12</option>
<option value="none2">===== Cover Damage Resistance</option>
<option value="d4">Soft cover d4</option>
<option value="d6">Dense cover d16</option>
<option value="d8">Light cover d8</option>
<option value="d10">Thick cover d10</option>
<option value="d12">Solid cover d12</option>
<option value="none3">===== Outnumbered</option>
<option value="d4">Outnumbered 1 Extra Ally d4</option>
<option value="d6">Outnumbered 2 Extra Allies d6</option>
<option value="d8">Outnumbered 3 Extra Allies d8</option>
<option value="d10">Outnumbered 4 Extra Allies d10</option>
<option value="d12">Outnumbered 5 Extra Allies d1<option>
<option value="none4">===== Called DMG Shot Bonus</option>
<option value="d12">Eyes/head d12<option>
<option value="none4">===== Impact DMG Bonus</option>
<option value="d4">Soft d4<option>
<option value="d6">Thin/Flimsy d6<option>
<option value="d8">Solid Furniture d8<option>
<option value="d10">Thin Metal/Thick Wood d10<option>
<option value="d12">Solid Object/Concrete d12<option>
<option value="none5">===== Other Circumstances</option>
<option value="d4">Concentrated<option>
<option value="d4">Off Hand d4<option>
{{/select}}
</select>
</div>
</div> </div>
<div> <div>