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.

184 lines
9.6 KiB

1 year ago
  1. <section class="tab main" data-group="primary" data-tab="main">
  2. <!-- TOGGLES -->
  3. <div class="toggles section-container headerless">
  4. {{#if toggles}}
  5. <div class="section-body actions-options item-list">
  6. {{#each toggles as |toggle idx|}}
  7. <div class="actions-option item" data-item-id="{{toggle.itemId}}" data-domain="{{toggle.domain}}" data-option="{{toggle.option}}">
  8. <label>
  9. <input type="checkbox" data-action="toggle-roll-option" {{disabled (not toggle.enabled)}} {{checked toggle.checked}} />
  10. <span{{#if (not (or toggle.checked toggle.enabled))}} class="unchecked-disabled"{{/if}}>{{localize toggle.label}}</span>
  11. {{#if toggle.suboptions}}
  12. <select data-action="set-suboption">
  13. {{#each toggle.suboptions as |suboption|}}
  14. <option value="{{suboption.value}}"{{#if suboption.selected}} selected{{/if}}>{{localize suboption.label}}</option>
  15. {{/each}}
  16. </select>
  17. {{/if}}
  18. </label>
  19. </div>
  20. {{/each}}
  21. </div>
  22. {{/if}}
  23. </div>
  24. <div class="recall-knowledge section-container">
  25. <div class="section-header">
  26. <h4>{{localize "PF2E.RecallKnowledge.Label"}}</h4>
  27. <button type="button" class="breakdown">{{localize "PF2E.RecallKnowledge.Breakdown"}}</button>
  28. </div>
  29. <div class="section-body">
  30. {{#if identificationDCs.standard}}
  31. <div class="tag-legacy identification-skills" title="{{localize "PF2E.Actor.NPC.Identification.Skills.Tooltip"}}">
  32. {{identificationDCs.standard}}
  33. </div>
  34. {{/if}}
  35. <div class="tag-legacy identification-skills" title="{{localize "PF2E.Actor.NPC.Identification.Lore.Tooltip"}}">
  36. {{identificationDCs.lore}}
  37. </div>
  38. </div>
  39. </div>
  40. <div class="top-sections">
  41. <div class="ability-scores section-container">
  42. <div class="section-header">
  43. <h4>{{localize "PF2E.Actor.Creature.AbilityModifiers"}}</h4>
  44. </div>
  45. <!-- ABILITY MODIFIERS -->
  46. <div class="section-body">
  47. <div class="list">
  48. {{#each data.abilities as |ability id|}}
  49. <div class="labelled-field" data-attribute="{{id}}">
  50. <label class="rollable"><a>{{ability.localizedCode}}</a></label>
  51. <input class="modifier" type="text" data-property="system.abilities.{{id}}.mod" value="{{numberFormat ability.mod decimals=0 sign=true}}" data-dtype="Number" placeholder="0"/>
  52. </div>
  53. {{/each}}
  54. </div>
  55. </div>
  56. </div>
  57. <!-- SENSES -->
  58. <div class="senses section-container">
  59. <div class="section-header">
  60. <h4>{{localize "PF2E.NPC.SensesLabel"}}</h4>
  61. </div>
  62. <div class="section-body">
  63. <div class="perception labelled-field" data-attribute="perception">
  64. <label class="attribute-label rollable"><a>{{localize "PF2E.PerceptionLabel"}}</a></label>
  65. {{#with data.attributes.perception as |perception|}}
  66. <input type="text" value="{{numberFormat perception.value decimals=0 sign=true}}" class="modifier adjustable{{#if perception.adjustedHigher}} adjusted-higher{{/if}}{{#if perception.adjustedLower}} adjusted-lower{{/if}}" data-property="system.attributes.perception.value" data-dtype="Number" placeholder="0" />
  67. {{/with}}
  68. </div>
  69. {{# if options.editable}}
  70. <input name="system.traits.senses.value" type="text" value="{{data.traits.senses.value}}" title="{{data.traits.senses.value}}" placeholder="{{localize "PF2E.SpecialSensesLabel"}}" />
  71. {{else}}
  72. <span>{{data.traits.senses.value}}</span>
  73. {{/if}}
  74. </div>
  75. </div>
  76. </div>
  77. <!-- LANGUAGES -->
  78. <div class="languages section-container">
  79. <div class="section-header" data-attribute="languages" for="data.traits.languages">
  80. <h4>{{localize "PF2E.Languages"}}</h4>
  81. {{# if options.editable}}
  82. <div class="languages-controls controls">
  83. <a class="tag-selector edit" data-tag-selector="basic" data-title="PF2E.Languages" data-config-types="languages" data-property="system.traits.languages" title="{{localize "PF2E.NPC.EditLanguages"}}"><i class="fas fa-edit"></i></a>
  84. </div>
  85. {{/if}}
  86. </div>
  87. <div class="section-body">
  88. {{#each languages as |language slug|}}
  89. <div class="tag-legacy language" data-slug="{{slug}}">{{localize language.label}}</div>
  90. {{/each}}
  91. {{#if languageDetails}}<div class="tag-legacy language">{{localize languageDetails}}</div>{{/if}}
  92. </div>
  93. </div>
  94. <!-- SKILLS -->
  95. <div class="skills section-container">
  96. <div class="section-header">
  97. <h4>{{localize "PF2E.SkillsLabel"}}</h4>
  98. {{#if options.editable}}
  99. <div class="skills-controls controls" for="data.skills">
  100. <a class="skills-edit edit" data-options="skill" title="{{localize "PF2E.NPC.EditSkills"}}"><i class="fas fa-edit"></i></a>
  101. </div>
  102. {{/if}}
  103. </div>
  104. <div class="section-body">
  105. <div class="list">
  106. {{#each data.sortedSkills as |skill id|}}
  107. {{#if skill.visible}}
  108. <div class="skill-entry tag-legacy" data-skill="{{id}}">
  109. <a class="rollable">{{skill.label}} <span class="adjustable{{#if skill.adjustedHigher}} adjusted-higher{{else if skill.adjustedLower}} adjusted-lower{{/if}}">{{numberFormat skill.value decimals=0 sign=true}}</span></a>
  110. {{#if skill.variants}}
  111. {{#each skill.variants as |variant variantId|}}
  112. <a class="rollable variant" data-skill="{{id}}" data-options="{{variant.options}}">({{variant.label}})</a>
  113. {{/each}}
  114. {{/if}}
  115. </div>
  116. {{/if}}
  117. {{/each}}
  118. </div>
  119. </div>
  120. </div>
  121. <!-- ATTACKS -->
  122. <div class="attacks section-container">
  123. <div class="section-header">
  124. <h4>{{localize "PF2E.NPC.Attacks"}}</h4>
  125. {{#if options.editable}}
  126. <div class="attacks-controls controls">
  127. <a class="attack-add item-create" data-type="melee" data-action-type="melee"><i class="fas fa-plus"></i> {{localize "PF2E.NPCAttackMelee"}}</a>
  128. <a class="attack-add item-create" data-type="melee" data-action-type="ranged"><i class="fas fa-plus"></i> {{localize "PF2E.NPCAttackRanged"}}</a>
  129. </div>
  130. {{/if}}
  131. </div>
  132. <div class="section-body">
  133. <ol class="attacks-list strikes-list item-list">
  134. {{#each data.actions as |attack index|}}
  135. {{> "systems/pf2e/templates/actors/npc/partials/attack.hbs" action=attack index=index isEditable=../options.editable}}
  136. {{/each}}
  137. </ol>
  138. </div>
  139. </div>
  140. <!-- ACTIONS -->
  141. <div class="actions section-container">
  142. <div class="section-header">
  143. <h4>{{localize "PF2E.ActionActionsLabel"}}</h4>
  144. {{#if options.editable}}
  145. <div class="actions-controls controls">
  146. <a class="action-add item-create" title="{{localize "PF2E.NPC.AddAction"}}" data-type="action" data-action-type="action"><i class="fas fa-plus"></i></a>
  147. </div>
  148. {{/if}}
  149. </div>
  150. <div class="section-body">
  151. <ol class="actions-list item-list">
  152. {{#each actions as |section sectionId|}}
  153. {{#unless (eq sectionId "passive")}}
  154. {{#each section.actions as |action actionId|}}
  155. {{> "systems/pf2e/templates/actors/npc/partials/action.hbs" action=action isEditable=../../options.editable}}
  156. {{/each}}
  157. {{/unless}}
  158. {{/each}}
  159. </ol>
  160. </div>
  161. </div>
  162. <!-- PASSIVES -->
  163. <div class="passives section-container">
  164. <div class="section-header">
  165. <h4>{{localize "PF2E.NPC.PassivesLabel"}}</h4>
  166. {{#if options.editable}}
  167. <div class="actions-controls controls">
  168. <a class="action-add item-create" title="{{localize "PF2E.NPC.AddPassive"}}" data-type="action" data-action-type="passive"><i class="fas fa-plus"></i></a>
  169. </div>
  170. {{/if}}
  171. </div>
  172. <div class="section-body">
  173. <ol class="actions-list item-list">
  174. {{#each actions as |section sectionId|}}
  175. {{#if (eq sectionId "passive")}}
  176. {{#each section.actions as |action actionId|}}
  177. {{> "systems/pf2e/templates/actors/npc/partials/action.hbs" action=action isEditable=@root.options.editable}}
  178. {{/each}}
  179. {{/if}}
  180. {{/each}}
  181. </ol>
  182. </div>
  183. </div>
  184. </section>