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.

55 lines
2.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
  1. <form spellcheck="false" data-tooltip-class="pf2e">
  2. <h3>
  3. {{localize "PF2E.ConditionTypePersistent"}}
  4. {{#if existing}}
  5. <a data-action="roll-persistent">
  6. <i class="fa-solid fa-dice-d6"></i> {{localize "PF2E.Item.Condition.PersistentDamage.RollDamage"}}
  7. </a>
  8. {{/if}}
  9. </h3>
  10. <section class="entries new">
  11. <section class="persistent-entry">
  12. <div class="input-fields">
  13. <i class="fa-solid fa-dice-d6 fa-fw"></i>
  14. <input type="text" class="formula" placeholder="1d6" />
  15. {{> damageTypeSelect}}
  16. <label>
  17. <span>DC</span>
  18. <input type="number" class="dc" placeholder="15" />
  19. </label>
  20. </div>
  21. <a data-action="add" data-tooltip="PF2E.Item.Condition.PersistentDamage.Dialog.Add"><i class="fa-solid fa-floppy-disk fa-fw"></i></a>
  22. </section>
  23. </section>
  24. {{#if existing}}
  25. <hr />
  26. <section class="entries">
  27. {{#each existing as |condition|}}
  28. <section class="persistent-entry {{#unless condition.active}}inactive{{/unless}}" data-id="{{condition.id}}">
  29. <div class="input-fields">
  30. {{{condition.bullet}}}
  31. <input type="text" class="formula" value="{{condition.formula}}" />
  32. {{> damageTypeSelect selected=condition.damageType}}
  33. <label>
  34. <span>DC</span>
  35. <input type="number" class="dc" placeholder="15" value="{{condition.dc}}" />
  36. </label>
  37. </div>
  38. <a data-action="delete" data-tooltip="PF2E.Item.Condition.PersistentDamage.Dialog.Remove"><i class="fa-solid fa-times fa-fw"></i></a>
  39. </section>
  40. {{/each}}
  41. </section>
  42. {{/if}}
  43. </form>
  44. {{~#*inline "damageTypeSelect"~}}
  45. <select class="damageType">
  46. {{#select selected}}
  47. {{#each @root.damageTypes}}
  48. <option value="{{type}}">{{label}}</option>
  49. {{/each}}
  50. {{/select}}
  51. </select>
  52. {{~/inline~}}