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.

156 lines
6.5 KiB

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