Fix #56
This commit is contained in:
parent
a43da3198b
commit
a49de15a11
@ -259,7 +259,14 @@ export class PegasusRollDialog extends Dialog {
|
||||
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) => {
|
||||
let diceKey = $(event.currentTarget).data("dice-key")
|
||||
let diceLevel = $(event.currentTarget).data("dice-level")
|
||||
|
@ -951,6 +951,7 @@ export class PegasusUtility {
|
||||
specLevelBonus: 0,
|
||||
hindranceLevelBonus: 0,
|
||||
hindranceDicesLevel: 0,
|
||||
modifiers: "none",
|
||||
otherDicesLevel: 0,
|
||||
statDicesLevel: 0,
|
||||
specDicesLevel: 0,
|
||||
|
@ -105,6 +105,48 @@
|
||||
</div>
|
||||
{{/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>
|
||||
|
Loading…
Reference in New Issue
Block a user