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.

95 lines
4.3 KiB

1 year ago
  1. <form class="check-modifiers-content" autocomplete="off" spellcheck="off">
  2. {{#if substitutions}}
  3. <div class="dialog-row header">
  4. <span class="mod">Substitution</span>
  5. <span class="type">Roll</span>
  6. <span class="exclude">Utilize?</span>
  7. </div>
  8. <div class="substitutions">
  9. {{#each substitutions as |sub idx|}}
  10. <div class="dialog-row{{#if sub.ignored}} disabled{{/if}}">
  11. <span class="mod">{{sub.label}}</span>
  12. <span class="type">{{sub.value}}</span>
  13. <label class="exclude toggle">
  14. <input type="checkbox" id="{{@root.appId}}-sub-{{idx}}" data-sub-index="{{idx}}" {{checked (not sub.ignored)}} />
  15. <label for="{{@root.appId}}-sub-{{idx}}"></label>
  16. </label>
  17. </div>
  18. {{/each}}
  19. </div>
  20. {{/if}}
  21. <hr />
  22. <div class="dialog-row header">
  23. <span class="type">{{localize "PF2E.Roll.Type"}}</span>
  24. <span class="mod">{{localize "PF2E.Roll.Modifier"}}</span>
  25. <span class="exclude"></span>
  26. </div>
  27. <div class="modifier-container">
  28. {{#each modifiers as |modifier idx|}}
  29. <div class="dialog-row{{#unless modifier.enabled}} disabled{{#if modifier.hideIfDisabled}} hidden{{/if}}{{/unless}}">
  30. <span class="type tag">{{localize (concat "PF2E.ModifierType." modifier.type)}}</span>
  31. <span class="mod">{{modifier.label}}</span>
  32. <span class="value">{{numberFormat modifier.modifier decimals=0 sign=true}}</span>
  33. <label class="exclude toggle">
  34. <input type="checkbox" id="{{@root.appId}}-modifier-{{idx}}" data-modifier-index="{{idx}}" {{checked (not modifier.ignored)}} />
  35. <label for="{{@root.appId}}-modifier-{{idx}}"></label>
  36. </label>
  37. </div>
  38. {{/each}}
  39. </div>
  40. <hr />
  41. <div class="add-modifier-panel">
  42. <input type="text" class="add-modifier-name" placeholder={{localize "PF2E.ModifierTitle"}}>
  43. <select class="add-modifier-type">
  44. <option value="circumstance" selected>{{localize "PF2E.ModifierType.circumstance"}}</option>
  45. <option value="item">{{localize "PF2E.ModifierType.item"}}</option>
  46. <option value="status">{{localize "PF2E.ModifierType.status"}}</option>
  47. <option value="untyped">{{localize "PF2E.ModifierType.untyped"}}</option>
  48. <option value="ability">{{localize "PF2E.ModifierType.ability"}}</option>
  49. <option value="proficiency">{{localize "PF2E.ModifierType.proficiency"}}</option>
  50. </select>
  51. <input type="number" class="add-modifier-value" placeholder="+1">
  52. <button type="button" class="add-modifier">+{{localize "PF2E.Roll.Add"}}</button>
  53. </div>
  54. <hr/>
  55. <div class="fate">
  56. <label>
  57. <input type="radio" name="rollTwice" value="keep-higher" {{checked fortune}} />
  58. {{localize "PF2E.Roll.KeepHigher"}}
  59. </label>
  60. <label>
  61. <input type="radio" name="rollTwice" value="" {{checked none}} />
  62. {{localize "PF2E.Roll.Normal"}}
  63. </label>
  64. <label>
  65. <input type="radio" name="rollTwice" value="keep-lower" {{checked misfortune}} />
  66. {{localize "PF2E.Roll.KeepLower"}}
  67. </label>
  68. </div>
  69. <hr/>
  70. <div class="roll-mode-panel">
  71. <span class="label">{{localize "PF2E.RollModeLabel"}}</span>
  72. <select name="rollmode">
  73. {{#select rollMode}}
  74. {{#each rollModes as |label key|}}
  75. <option value="{{key}}">{{localize label}}</option>
  76. {{/each}}
  77. {{/select}}
  78. </select>
  79. </div>
  80. <hr/>
  81. <button type="button" class="roll">{{localize "PF2E.Roll.Roll"}} ({{numberFormat totalModifier decimals=0 sign=true}})</button>
  82. <!-- Settings Menu -->
  83. <div class="hover-content" id="{{appId}}-settings">
  84. <ul class="modifier-list settings-list">
  85. <li class="item">
  86. <span class="label">{{localize "PF2E.SETTINGS.Player.QuickRolls.DialogHint"}}</span>
  87. <input class="quick-rolls-submit" type="checkbox" {{checked showRollDialogs}} />
  88. </li>
  89. </ul>
  90. </div>
  91. </form>