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.

119 lines
5.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
  1. <ol class="form-list">
  2. <div class="form-group">
  3. <label>{{localize "PF2E.Item.Affliction.SaveLabel"}}</label>
  4. <div class="form-fields">
  5. <input type="number" name="system.save.value" value="{{data.save.value}}">
  6. <select name="system.save.type">
  7. {{#select data.save.type}}
  8. {{#each saves as |ability a|}}
  9. <option value="{{a}}">{{localize ability}}</option>
  10. {{/each}}
  11. {{/select}}
  12. </select>
  13. </div>
  14. </div>
  15. </ol>
  16. {{#each stages as |stage stageId|}}
  17. <ol class="form-list subsection affliction-stage" data-stage-id="{{stageId}}">
  18. <header>
  19. <h3>{{localize "PF2E.Item.Affliction.Stage" stage=stage.stage}}</h3>
  20. <div class="item-controls">
  21. <i class="fas fa-fw fa-times" data-action="stage-delete"></i>
  22. </div>
  23. </header>
  24. <div class="damage-formulas">
  25. <h3>
  26. {{localize "PF2E.FormulaPlaceholder"}}
  27. <div class="item-controls">
  28. <i class="fas fa-fw fa-plus" data-action="damage-create"></i>
  29. </div>
  30. </h3>
  31. {{#each stage.damage as |damage id|}}
  32. <div class="formula-section">
  33. <div class="form-fields">
  34. <input type="text" name="system.stages.{{stageId}}.damage.{{id}}.formula" value="{{damage.formula}}" placeholder="{{localize "PF2E.FormulaPlaceholder"}}" />
  35. <select name="system.stages.{{stageId}}.damage.{{id}}.category">
  36. {{#select damage.category}}
  37. <option></option>
  38. {{#each @root.damageCategories as |name type|}}
  39. <option value="{{type}}">{{localize name}}</option>
  40. {{/each}}
  41. {{/select}}
  42. </select>
  43. <select name="system.stages.{{stageId}}.damage.{{id}}.type">
  44. {{#select damage.type}}
  45. {{#each @root.damageTypes as |name type|}}
  46. <option value="{{type}}">{{localize name}}</option>
  47. {{/each}}
  48. {{/select}}
  49. </select>
  50. <div class="item-controls">
  51. <a data-action="damage-delete" data-id="{{id}}"><i class="fas fa-fw fa-times"></i></a>
  52. </div>
  53. </div>
  54. </div>
  55. {{/each}}
  56. </div>
  57. <section>
  58. <h3>
  59. {{localize "PF2E.ConditionsLabel"}}
  60. <div class="item-controls">
  61. <i class="fas fa-fw fa-plus" data-action="condition-create"></i>
  62. </div>
  63. </h3>
  64. <div class="form-group two-by-two">
  65. {{#each stage.conditions as |condition key|}}
  66. <div class="form-fields stage-condition" data-condition-id="{{key}}">
  67. <select name="system.stages.{{stageId}}.conditions.{{key}}.slug">
  68. {{#select condition.slug}}
  69. {{#each @root.conditionTypes as |label slug|}}
  70. <option value="{{slug}}">{{localize label}}</option>
  71. {{/each}}
  72. {{/select}}
  73. </select>
  74. {{#if condition.document.system.value.isValued}}
  75. <input type="number" name="system.stages.{{stageId}}.conditions.{{key}}.value" value="{{condition.value}}" />
  76. {{/if}}
  77. {{#if @root.options.editable}}
  78. <div class="item-controls">
  79. <a class="link {{#if condition.linked}}linked{{/if}}" data-action="condition-link" title="{{localize "PF2E.Item.Affliction.Linked.Title"}}">
  80. <i class="fas fa-fw {{#if condition.linked}}fa-link{{else}}fa-link-slash{{/if}}"></i>
  81. </a>
  82. <a class="remove" data-action="condition-delete"><i class="fa fa-fw fa-times"></i></a>
  83. </div>
  84. {{/if}}
  85. </div>
  86. {{/each}}
  87. </div>
  88. </section>
  89. <section class="item-ref-group">
  90. <h3>{{localize "PF2E.EffectsLabel"}}</h3>
  91. {{#if stage.effects}}
  92. <ul class="item-refs">
  93. {{#each stage.effects as |effect|}}
  94. <li data-uuid="{{effect.uuid}}">
  95. <img class="icon" src="{{effect.img}}" />
  96. <a class="name document-link" data-uuid="{{effect.uuid}}" data-action="view-effect">{{effect.name}}</a>
  97. <span></span>
  98. {{#if @root.options.editable}}<a class="remove" data-action="effect-delete"><i class="fa fa-times"></i></a>{{/if}}
  99. </li>
  100. {{/each}}
  101. </ul>
  102. {{/if}}
  103. </section>
  104. <div class="form-group">
  105. <h3>{{localize "PF2E.Time.Duration"}}</h3>
  106. {{> systems/pf2e/templates/items/partials/duration.hbs base=(concat "system.stages." stageId ".duration") duration=stage.duration units=../durationUnits}}
  107. </div>
  108. </ol>
  109. {{/each}}
  110. <button type="button" data-action="stage-add">
  111. <i class="fas fa-plus"></i>{{localize "PF2E.Item.Affliction.AddStage"}}
  112. </button>