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.

46 lines
2.6 KiB

  1. <div class="hover-content modifiers-tooltip" id="{{@root.options.id}}-{{slug}}-modifiers" data-stat="{{slug}}">
  2. <div class="sidebar_title">
  3. <h2>{{localize title}}</h2>
  4. </div>
  5. <ul class="modifier-list">
  6. {{!-- Coalesce until `StatisticModifier` is removed --}}
  7. {{#each (coalesce modifiers _modifiers) as |modifier|}}
  8. {{#if (or modifier.enabled (not modifier.hideIfDisabled))}}
  9. <li class="item {{#unless modifier.enabled}}no-effect{{/unless}}">
  10. <span class="tag-legacy">
  11. {{localize (concat "PF2E.ModifierType." modifier.type)}}
  12. </span>
  13. <span class="label">{{modifier.label}}</span>
  14. <span class="data">{{numberFormat modifier.modifier decimals=0 sign=true}}</span>
  15. {{#if modifier.custom}}
  16. <i class="far fa-times-circle remove-modifier" data-action="remove-modifier" data-slug="{{modifier.slug}}" title="{{localize "PF2E.RemoveModifierTitle"}}"></i>
  17. {{/if}}
  18. </li>
  19. {{/if}}
  20. {{/each}}
  21. {{#if @root.options.editable}}
  22. <li class="item add-modifier">
  23. <div class="add-modifier-value">
  24. <input type="number" placeholder="+1">
  25. <i class="fa-solid fa-plus-circle" data-action="increment"></i>
  26. <i class="fa-solid fa-minus-circle" data-action="decrement"></i>
  27. </div>
  28. <input type="text" class="add-modifier-name" placeholder={{localize "PF2E.ModifierNamePlaceholder"}}>
  29. <select class="tag-legacy add-modifier-type">
  30. <option value="">{{localize "PF2E.ModifierTypeTitle"}}</option>
  31. <option value="ability">{{localize "PF2E.ModifierType.ability"}}</option>
  32. <option value="proficiency">{{localize "PF2E.ModifierType.proficiency"}}</option>
  33. <option value="item">{{localize "PF2E.ModifierType.item"}}</option>
  34. <option value="status">{{localize "PF2E.ModifierType.status"}}</option>
  35. <option value="circumstance">{{localize "PF2E.ModifierType.circumstance"}}</option>
  36. {{#if abpEnabled}}<option value="potency">{{localize "PF2E.ModifierType.potency"}}</option>{{/if}}
  37. <option value="untyped">{{localize "PF2E.ModifierType.untyped"}}</option>
  38. </select>
  39. <button type="button" class="add-modifier-submit" data-action="create-custom-modifier">{{localize "PF2E.AddModifierTitle"}}</button>
  40. </li>
  41. {{/if}}
  42. </ul>
  43. </div>