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.

44 lines
2.4 KiB

1 year ago
  1. <div class="hover-content" id="{{@root.options.id}}-{{slug}}-modifiers">
  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-stat="{{../slug}}" data-slug="{{modifier.slug}}" title="{{localize "PF2E.RemoveModifierTitle"}}"></i>
  17. {{/if}}
  18. </li>
  19. {{/if}}
  20. {{/each}}
  21. <li class="item add-modifier">
  22. <div class="add-modifier-value">
  23. <input type="number" placeholder="+1">
  24. <i class="fas fa-plus-circle"></i>
  25. <i class="fas fa-minus-circle"></i>
  26. </div>
  27. <input type="text" class="add-modifier-name" placeholder={{localize "PF2E.ModifierNamePlaceholder"}}>
  28. <select class="tag-legacy add-modifier-type">
  29. <option value="">{{localize "PF2E.ModifierTypeTitle"}}</option>
  30. <option value="ability">{{localize "PF2E.ModifierType.ability"}}</option>
  31. <option value="proficiency">{{localize "PF2E.ModifierType.proficiency"}}</option>
  32. <option value="item">{{localize "PF2E.ModifierType.item"}}</option>
  33. <option value="status">{{localize "PF2E.ModifierType.status"}}</option>
  34. <option value="circumstance">{{localize "PF2E.ModifierType.circumstance"}}</option>
  35. {{#if abpEnabled}}<option value="potency">{{localize "PF2E.ModifierType.potency"}}</option>{{/if}}
  36. <option value="untyped">{{localize "PF2E.ModifierType.untyped"}}</option>
  37. </select>
  38. <button type="button" class="add-modifier-submit" data-stat="{{slug}}">{{localize "PF2E.AddModifierTitle"}}</button>
  39. </li>
  40. </ul>
  41. </div>