All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
6.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <form class="check-modifiers-content" autocomplete="off" spellcheck="off" data-tooltip-class="pf2e" data-tooltip-direction="UP">
  2. <div class="dialog-row header">
  3. <span class="mod">{{localize "PF2E.Roll.Dialog.Damage.DiceHeader"}}</span>
  4. </div>
  5. <div class="modifier-container dice">
  6. <div class="dialog-row base-damage">
  7. <div class="mod">{{localize "PF2E.Roll.Dialog.Damage.BaseDamage"}}</div>
  8. <div class="value">
  9. {{{baseFormula}}}
  10. </div>
  11. <div class="exclude"></div>
  12. </div>
  13. {{#each overrides as |die|}}
  14. {{> dice-row dice=die}}
  15. {{/each}}
  16. {{#each dice as |die|}}
  17. {{> dice-row dice=die}}
  18. {{/each}}
  19. </div>
  20. <hr/>
  21. <section class="add-entry-row add-dice-panel">
  22. <input type="text" class="add-dice-name" placeholder="{{localize "PF2E.Roll.Dialog.Damage.Label"}}">
  23. <input type="text" class="add-dice-count" placeholder="1">
  24. <select class="add-dice-faces">
  25. <option value="d4">{{localize "PF2E.DamageDieD4"}}</option>
  26. <option value="d6">{{localize "PF2E.DamageDieD6"}}</option>
  27. <option value="d8">{{localize "PF2E.DamageDieD8"}}</option>
  28. <option value="d10">{{localize "PF2E.DamageDieD10"}}</option>
  29. <option value="d12">{{localize "PF2E.DamageDieD12"}}</option>
  30. </select>
  31. <select class="add-dice-category">
  32. <option value="" selected></option>
  33. {{#each damageSubtypes as |name type|}}
  34. <option value="{{type}}">{{localize name}}</option>
  35. {{/each}}
  36. </select>
  37. <select class="add-dice-type">
  38. {{#each damageTypes as |name type|}}
  39. <option value="{{type}}">{{localize name}}</option>
  40. {{/each}}
  41. </select>
  42. <button type="button" class="add-dice">+{{localize "PF2E.Roll.Add"}}</button>
  43. </section>
  44. <hr />
  45. <div class="dialog-row header">
  46. <span class="mod">{{localize "PF2E.Roll.Modifier"}}</span>
  47. <span class="type">{{localize "PF2E.Roll.Type"}}</span>
  48. <span class="value"></span>
  49. <span class="exclude"></span>
  50. </div>
  51. <div class="modifier-container modifiers">
  52. {{#if modifiers}}
  53. {{#each modifiers as |modifier|}}
  54. {{> modifier-row modifier=modifier}}
  55. {{/each}}
  56. {{else}}
  57. <div class="dialog-row">
  58. <span class="no-mod">{{localize "PF2E.Roll.Dialog.Damage.None"}}</span>
  59. </div>
  60. {{/if}}
  61. </div>
  62. <hr />
  63. <section class="add-entry-row add-modifier-panel">
  64. <input type="text" class="add-modifier-name" placeholder={{localize "PF2E.Roll.Dialog.Damage.Label"}}>
  65. <input type="number" class="add-modifier-value" placeholder="+1">
  66. <select class="add-modifier-type">
  67. <option value="circumstance">{{localize "PF2E.ModifierType.circumstance"}}</option>
  68. <option value="item">{{localize "PF2E.ModifierType.item"}}</option>
  69. <option value="status">{{localize "PF2E.ModifierType.status"}}</option>
  70. <option value="untyped" selected>{{localize "PF2E.ModifierType.untyped"}}</option>
  71. <option value="ability">{{localize "PF2E.ModifierType.ability"}}</option>
  72. <option value="proficiency">{{localize "PF2E.ModifierType.proficiency"}}</option>
  73. </select>
  74. <select class="add-modifier-category">
  75. <option value=""></option>
  76. {{#each damageSubtypes as |name type|}}
  77. <option value="{{type}}">{{localize name}}</option>
  78. {{/each}}
  79. </select>
  80. <select class="add-modifier-damage-type">
  81. {{#each damageTypes as |name type|}}
  82. <option value="{{type}}">{{localize name}}</option>
  83. {{/each}}
  84. </select>
  85. <button type="button" class="add-modifier">+{{localize "PF2E.Roll.Add"}}</button>
  86. </section>
  87. <hr />
  88. <div class="roll-mode-panel">
  89. <label class="roll-mode">
  90. {{localize "PF2E.RollModeLabel"}}
  91. <select name="rollmode">
  92. {{#select rollMode}}
  93. {{#each rollModes as |label key|}}
  94. <option value="{{key}}">{{localize label}}</option>
  95. {{/each}}
  96. {{/select}}
  97. </select>
  98. </label>
  99. <label data-tooltip="PF2E.Roll.Dialog.ShowDefaultHint">
  100. {{localize "PF2E.Roll.Dialog.ShowDefault"}}
  101. <input data-action="change-show-default" type="checkbox" {{checked showDamageDialogs}} />
  102. </label>
  103. </div>
  104. <hr />
  105. <button type="button" class="roll">{{{formula}}}</button>
  106. </form>
  107. {{#*inline "modifier-row"}}
  108. <div class="dialog-row{{#unless modifier.enabled}} disabled{{#if modifier.hideIfDisabled}} hidden{{/if}}{{/unless}}">
  109. <span class="mod">{{modifier.label}}</span>
  110. <span class="type"><span class="tag">{{localize (concat "PF2E.ModifierType." modifier.type)}}</span></span>
  111. <div class="value" data-tooltip="{{modifier.typeLabel}}">
  112. <div class="modifier-type{{#if modifier.damageType}} damage color {{modifier.damageType}}{{/if}}">
  113. {{numberFormat modifier.modifier decimals=0 sign=true}} {{{modifier.icon}}}
  114. </div>
  115. </div>
  116. <div class="exclude">
  117. <label class="toggle">
  118. <input type="checkbox" data-modifier-index="{{modifier.idx}}" {{checked (not modifier.ignored)}} />
  119. <span class="widget"></span>
  120. </label>
  121. </div>
  122. </div>
  123. {{/inline}}
  124. {{#*inline "dice-row"}}
  125. <div class="dialog-row{{#unless dice.enabled}} disabled{{/unless}}">
  126. <span class="mod">{{dice.label}}</span>
  127. <div class="value" data-tooltip="{{dice.typeLabel}}">
  128. <span class="dice-type damage color{{#if dice.damageType}} {{dice.damageType}}{{/if}}">
  129. {{dice.diceLabel}} {{{dice.icon}}}
  130. </span>
  131. </div>
  132. <div class="exclude">
  133. <label class="toggle">
  134. <input type="checkbox" data-dice-index="{{dice.idx}}" data-slug="{{dice.slug}}" {{checked (not dice.ignored)}} />
  135. <span class="widget"></span>
  136. </label>
  137. </div>
  138. </div>
  139. {{/inline}}