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.

59 lines
2.6 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <div class="form-group attack-modifier">
  2. <label>{{localize "PF2E.NPCWeaponAttackLabel"}}</label>
  3. <input type="number" name="system.bonus.value" value="{{data.bonus.value}}" />
  4. </div>
  5. <ol class="form-list">
  6. {{#each data.damageRolls as |damageRoll key|}}
  7. <li class="damage-partial" data-key="{{key}}">
  8. <div class="form-group">
  9. <label>{{localize "PF2E.DamageLabel"}}</label>
  10. <input type="text" name="system.damageRolls.{{key}}.damage" value="{{lookup this "damage"}}" />
  11. </div>
  12. <div class="form-group type">
  13. <label>{{localize "PF2E.Roll.Type"}}</label>
  14. <select name="system.damageRolls.{{key}}.damageType">
  15. {{#select (lookup damageRoll "damageType")}}
  16. {{#each @root.damageTypes as |label type|}}
  17. <option value="{{type}}">{{localize label}}</option>
  18. {{/each}}
  19. {{/select}}
  20. </select>
  21. </div>
  22. <div class="form-group category">
  23. <label>{{localize "PF2E.Category"}}</label>
  24. <select name="system.damageRolls.{{key}}.category">
  25. {{#select (lookup damageRoll "category")}}
  26. <option value=""></option>
  27. {{#each @root.damageCategories as |label category|}}
  28. <option value="{{category}}">{{localize label}}</option>
  29. {{/each}}
  30. {{/select}}
  31. </select>
  32. </div>
  33. <a class="damage-control remove-partial" data-action="remove-partial"><i class="fa-solid fa-minus"></i></a>
  34. </li>
  35. {{/each}}
  36. <li class="damage-partial add">
  37. <div class="form-group">
  38. <label>
  39. <a class="damage-control" data-action="add-partial">{{localize "PF2E.NPCWeaponAddDamage"}} <i class="fa-solid fa-plus"></i></a>
  40. </label>
  41. </div>
  42. </li>
  43. </ol>
  44. <div class="form-group stacked">
  45. <label>
  46. {{localize "PF2E.NPCWeaponAttackEffect"}}
  47. <a class="tag-selector" data-tag-selector="basic" data-title="PF2E.NPCWeaponAttackEffect" data-config-types="attackEffects" data-property="system.attackEffects"><i class="fa-solid fa-edit"></i></a>
  48. </label>
  49. <ul class="traits-list tags">
  50. {{#each attackEffects as |attackEffect|}}
  51. {{#if attackEffect.selected}}
  52. <li class="tag tag_alt" data-attack-effect="{{attackEffect.value}}">{{localize attackEffect.label}}</li>
  53. {{/if}}
  54. {{/each}}
  55. </ul>
  56. </div>