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.

159 lines
8.3 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <section class="tab proficiencies major" data-group="primary" data-tab="proficiencies" data-tooltip-class="pf2e">
  2. <header>{{localize "PF2E.CoreSkillsHeader"}}</header>
  3. <ul class="proficiencies-list">
  4. <!-- Core Skills -->
  5. {{#each data.skills as |skill key|}}
  6. {{#unless skill.lore}}
  7. <li>
  8. <a class="skill-name" data-action="roll-check" data-statistic="{{skill.slug}}" data-tooltip="{{skill.breakdown}}">
  9. <span class="modifier">{{numberFormat skill.value decimals=0 sign=true}}</span>
  10. <h4>{{localize skill.label}}</h4>
  11. </a>
  12. <div class="skill-prof button-group">
  13. <select
  14. class="skill-proficiency pf-rank"
  15. data-property="system.skills.{{key}}.rank"
  16. data-rank="{{skill.rank}}"
  17. data-dtype="Number"
  18. >
  19. {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" proflevel=skill.rank}}
  20. </select>
  21. <div class="hover-container">
  22. <h6 class="hover" data-tooltip-content="#{{@root.options.id}}-{{skill.slug}}-modifiers">{{localize "PF2E.ModifiersTitle"}}</h6>
  23. </div>
  24. </div>
  25. {{#with skill}}
  26. {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" abpEnabled=@root.abpEnabled title=label}}
  27. {{/with}}
  28. </li>
  29. {{/unless}}
  30. {{/each}}
  31. </ul>
  32. <!-- Lore Header -->
  33. <header>
  34. {{localize "PF2E.LoreSkillsHeader"}}
  35. <div class="controls">
  36. <button type="button" class="item-control item-create" data-tooltip="PF2E.CreateSkillTitle" data-type="lore">
  37. <i class="fa-solid fa-fw fa-plus"></i>{{localize "PF2E.AddShortLabel"}}
  38. </button>
  39. </div>
  40. </header>
  41. <ul class="proficiencies-list lores-list">
  42. <!-- Lore Skills -->
  43. {{#each data.skills as |skill idx|}}
  44. {{#if skill.lore}}
  45. <li class="item" data-item-id="{{skill.itemID}}" data-item-type="lore">
  46. <a
  47. class="modifier"
  48. data-action="roll-check"
  49. data-statistic="{{skill.slug}}"
  50. data-tooltip="{{skill.breakdown}}"
  51. >{{numberFormat skill.value decimals=0 sign=true}}</a>
  52. <div class="skill-name lore-name-input item-name-input">
  53. <input data-item-id="{{skill.itemID}}" data-item-property="name" type="text" value="{{skill.label}}" />
  54. </div>
  55. <div class="skill-prof button-group skill-container">
  56. <select class="skill-proficiency pf-rank adjust-item-stat-select" data-item-property="system.proficient.value" data-tooltip="{{skill.breakdown}}" data-rank="{{skill.rank}}">
  57. {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" proflevel=skill.rank}}
  58. </select>
  59. {{#if ../editable}}
  60. <div class="item-controls">
  61. <a class="item-control item-delete skill-armor" data-tooltip="PF2E.DeleteItemTitle"><i class="fa-solid fa-fw fa-trash"></i></a>
  62. </div>
  63. {{/if}}
  64. </div>
  65. </li>
  66. {{/if}}
  67. {{/each}}
  68. </ul>
  69. <!-- Attacks -->
  70. <header class="attacks-defenses">
  71. {{localize "PF2E.Actor.Character.Proficiency.Attack.Title"}}
  72. {{#if editable}}
  73. <div class="controls">
  74. <button type="button" class="item-control" data-action="add-attack-proficiency" data-tooltip="PF2E.AddCombatProficiency.Title">
  75. <i class="fa-solid fa-fw fa-plus"></i>{{localize "PF2E.AddShortLabel"}}
  76. </button>
  77. </div>
  78. {{/if}}
  79. </header>
  80. <ul class="proficiencies-list combat-list">
  81. {{#each martialProficiencies.attacks as |proficiency key|}}
  82. <li{{#if proficiency.custom}} class="custom"{{/if}} data-slug="{{key}}">
  83. {{#if (and proficiency.custom @root.editable)}}
  84. <a class="delete" data-action="remove-attack-proficiency"><i class="fa-solid fa-fw fa-trash"></i></a>
  85. {{/if}}
  86. <span class="modifier" data-tooltip="{{proficiency.breakdown}}">{{numberFormat proficiency.value decimals=0 sign=true}}</span>
  87. <h4 class="skill-name lore-name-input">{{localize proficiency.label}}</h4>
  88. <div class="skill-prof button-group skill-container">
  89. <select
  90. class="skill-proficiency pf-rank{{#if proficiency.immutable}} readonly{{/if}}"
  91. data-property="system.proficiencies.attacks.{{key}}.rank"
  92. data-rank="{{proficiency.rank}}"
  93. data-dtype="Number"
  94. >
  95. {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" proflevel=proficiency.rank}}
  96. </select>
  97. </div>
  98. </li>
  99. {{/each}}
  100. </ul>
  101. <!-- Defenses -->
  102. <header class="attacks-defenses">
  103. {{localize "PF2E.Actor.Character.Proficiency.Defense.Title"}}
  104. </header>
  105. <ul class="proficiencies-list combat-list">
  106. {{#each martialProficiencies.defenses as |proficiency key|}}
  107. <li{{#if proficiency.custom}} class="custom"{{/if}} data-slug="{{key}}">
  108. {{#if (and proficiency.custom @root.editable)}}
  109. <a class="delete" data-action="remove-attack-proficiency"><i class="fa-solid fa-fw fa-trash"></i></a>
  110. {{/if}}
  111. <span class="modifier" data-tooltip="{{proficiency.breakdown}}">{{numberFormat proficiency.value decimals=0 sign=true}}</span>
  112. <h4 class="skill-name">{{localize proficiency.label}}</h4>
  113. <div class="skill-prof button-group skill-container">
  114. <select
  115. class="skill-proficiency pf-rank{{#if proficiency.immutable}} readonly{{/if}}"
  116. data-property="system.proficiencies.defenses.{{key}}.rank"
  117. data-rank="{{proficiency.rank}}"
  118. data-dtype="Number"
  119. >
  120. {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" proflevel=proficiency.rank}}
  121. </select>
  122. </div>
  123. </li>
  124. {{/each}}
  125. </ul>
  126. <!-- Spellcasting -->
  127. {{#if hasNormalSpellcasting}}
  128. <header>{{localize "PF2E.Item.Spell.Plural"}}</header>
  129. <ul class="proficiencies-list">
  130. {{#with document.spellcasting.base as |spellcasting|}}
  131. <li data-slug="spellcasting">
  132. <span class="modifier" data-tooltip="{{spellcasting.breakdown}}">{{numberFormat spellcasting.mod decimals=0 sign=true}}</span>
  133. <h4 class="skill-name lore-name-input">{{localize spellcasting.label}}</h4>
  134. <div class="skill-prof button-group skill-container">
  135. {{#if (gt actor.itemTypes.spellcastingEntry.length 0)}}
  136. <select
  137. class="skill-proficiency pf-rank"
  138. data-action="update-spellcasting-rank"
  139. data-rank="{{spellcasting.rank}}"
  140. >
  141. {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" proflevel=spellcasting.rank excludeUntrained=true}}
  142. </select>
  143. {{else}}
  144. <div class="button-group">
  145. <span class="pf-rank" data-rank="{{spellcasting.rank}}">{{lookup @root.numberToRank spellcasting.rank}}</span>
  146. </div>
  147. {{/if}}
  148. </div>
  149. </li>
  150. {{/with}}
  151. </ul>
  152. {{/if}}
  153. </section>