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.

198 lines
9.5 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 year ago
1 year ago
1 year ago
  1. <div class="tab character" data-group="primary" data-tab="character" data-tooltip-class="pf2e">
  2. <section class="character-details">
  3. <div class="image-container">
  4. <img
  5. class="actor-image"
  6. src="{{actor.img}}"
  7. alt="{{actor.name}}"
  8. {{#if editable}}data-edit="img"{{/if}}
  9. />
  10. <a class="hover-icon" data-action="show-image"><i class="fa-solid fa-image fa-fw"></i></a>
  11. </div>
  12. <div class="alignment">
  13. <span class="bio-alignment">
  14. <select aria-label="{{localize "PF2E.Alignment"}}" name="system.details.alignment.value">
  15. {{#select data.details.alignment.value}}
  16. {{#each alignments as |label key|}}
  17. <option value="{{key}}">{{localize label}}</option>
  18. {{/each}}
  19. {{/select}}
  20. </select>
  21. </span>
  22. </div>
  23. <div class="pc pc_deity item">
  24. <div class="input">
  25. {{> detailItem item=deity type="deity" compendium="pf2e.deities" }}
  26. </div>
  27. {{#if deity}}
  28. <img class="symbol" src="{{deity.img}}" alt="{{deity.name}}" />
  29. {{else}}
  30. <img class="symbol" src="systems/pf2e/icons/default-icons/deity.svg" alt="{{localize "PF2E.Deity"}}" />
  31. {{/if}}
  32. </div>
  33. <div class="detail-sheet">
  34. <div class="pc pc_ancestry item">
  35. {{> detailItem item=ancestry type="ancestry" compendium="pf2e.ancestries" }}
  36. </div>
  37. <div class="pc pc_heritage item">
  38. {{> detailItem item=heritage type="heritage" compendium="pf2e.heritages" }}
  39. </div>
  40. <div class="pc pc_class item">
  41. {{> detailItem item=class type="class" compendium="pf2e.classes" }}
  42. </div>
  43. <div class="pc pc_background item">
  44. {{> detailItem item=background type="background" compendium="pf2e.backgrounds" }}
  45. </div>
  46. </div>
  47. </section>
  48. <hr />
  49. <section class="character-background">
  50. <label>
  51. <span class="details-label">{{localize "PF2E.GenderPronoun"}}</span>
  52. <input type="text" class="details-input" name="system.details.gender.value" value="{{data.details.gender.value}}" />
  53. </label>
  54. <label>
  55. <span class="details-label">{{localize "PF2E.Age"}}</span>
  56. <input type="text" class="details-input" name="system.details.age.value" value="{{data.details.age.value}}" />
  57. </label>
  58. <label>
  59. <span class="details-label">{{localize "PF2E.Ethnicity"}}</span>
  60. <input type="text" class="details-input" name="system.details.ethnicity.value" value="{{data.details.ethnicity.value}}" />
  61. </label>
  62. <label>
  63. <span class="details-label">{{localize "PF2E.Nationality"}}</span>
  64. <input type="text" class="details-input" name="system.details.nationality.value" value="{{data.details.nationality.value}}" />
  65. </label>
  66. </section>
  67. <hr />
  68. <section class="character-traits">
  69. <div class="pc pc_land-speed">
  70. <span class="details-label">{{localize "PF2E.Speed"}}</span>
  71. <span>
  72. <h3 data-tooltip="{{data.attributes.speed.breakdown}}">{{data.attributes.speed.total}} {{localize "PF2E.TravelSpeed.FeetAcronym"}}</h3>
  73. </span>
  74. </div>
  75. <div class="pc pc_size">
  76. <span class="details-label">{{localize "PF2E.Size"}}</span>
  77. <span>
  78. <h3>{{localize (lookup actorSizes data.traits.size.value)}}</h3>
  79. </span>
  80. </div>
  81. <div class="break-column"></div>
  82. <div class="character-traits">
  83. <div class="pc pc_speed-types">
  84. <span class="details-label">{{localize "PF2E.SpeedTypes"}}</span>
  85. <ol class="tags">
  86. {{#each data.attributes.speed.otherSpeeds as |speed|}}
  87. <li class="tag tag_alt" data-slug="{{speed.type}}" data-tooltip="{{speed.breakdown}}">{{speed.label}} ({{speed.total}})</li>
  88. {{/each}}
  89. {{#if @root.options.editable}}
  90. <li class="tag tag_secondary edit-btn">
  91. <a class="crb-tag-selector" data-tag-selector="speed-types">
  92. {{> "systems/pf2e/templates/actors/character/icons/plus.hbs"}}
  93. </a>
  94. </li>
  95. {{/if}}
  96. </ol>
  97. </div>
  98. <div class="pc pc_senses">
  99. <span class="details-label">{{localize "PF2E.Senses"}}</span>
  100. <ol class="tags">
  101. {{#each data.traits.senses as |sense slug|}}
  102. {{#if sense.label}}<li class="tag tag_alt" data-slug="{{slug}}">{{sense.label}}</li>{{/if}}
  103. {{/each}}
  104. {{#if @root.options.editable}}
  105. <li class="tag tag_secondary edit-btn">
  106. <a class="crb-tag-selector" data-tag-selector="senses">
  107. {{> "systems/pf2e/templates/actors/character/icons/plus.hbs"}}
  108. </a>
  109. </li>
  110. {{/if}}
  111. </ol>
  112. </div>
  113. <div class="pc pc_languages">
  114. <span class="details-label">{{localize "PF2E.Languages"}}</span>
  115. <ul class="tags">
  116. {{#each languages as |language slug|}}
  117. <li class="tag tag_alt" data-slug="{{slug}}">{{language.label}}</li>
  118. {{/each}}
  119. {{#if @root.options.editable}}
  120. <li class="tag tag_secondary edit-btn">
  121. <a class="crb-tag-selector" data-tag-selector="basic" data-title="PF2E.Languages" data-config-types="languages" data-property="system.traits.languages">
  122. {{> "systems/pf2e/templates/actors/character/icons/plus.hbs"}}
  123. </a>
  124. </li>
  125. {{/if}}
  126. </ul>
  127. </div>
  128. <div class="pc pc_traits">
  129. <span class="details-label">{{localize "PF2E.Traits"}}</span>
  130. <ul class="tags">
  131. {{#each traits as |trait slug|}}
  132. <li class="tag tag_alt" data-slug="{{slug}}">{{trait.label}}</li>
  133. {{/each}}
  134. {{#if @root.options.editable}}
  135. <li class="tag tag_secondary edit-btn">
  136. <a class="crb-tag-selector" data-tag-selector="basic" data-config-types="creatureTraits" data-property="system.traits">
  137. {{> "systems/pf2e/templates/actors/character/icons/plus.hbs"}}
  138. </a>
  139. </li>
  140. {{/if}}
  141. </ul>
  142. </div>
  143. </div>
  144. </section>
  145. <!-- Attributes -->
  146. <h3 class="header">{{localize "PF2E.Actor.Creature.AttributeModifiers"}}
  147. <button type="button"{{#unless attributeBoostsAllocated}} class="has-unallocated"{{/unless}} data-action="edit-attribute-boosts">
  148. <i class="fa-solid fa-fw fa-edit"></i>{{localize "PF2E.Edit"}}
  149. </button>
  150. </h3>
  151. <section class="character-attributes" data-tooltip-direction="UP">
  152. <ol class="attributes">
  153. {{#each data.abilities as |attribute abbrev|}}
  154. <li class="attribute {{#if (eq ../actor.keyAttribute abbrev)}}key{{/if}}" data-attribute="{{abbrev}}">
  155. <h2 class="abbreviation">
  156. {{#if (eq ../data.details.keyability.value abbrev)}}
  157. <i class="key fa-solid fa-key" data-tooltip="PF2E.Actor.Character.Attribute.Key"></i>
  158. {{/if}}
  159. <span>{{localize (concat "PF2E.AbilityId." abbrev)}}</span>
  160. {{#if (eq ../data.build.attributes.apex abbrev)}}
  161. <i class="apex fa-solid fa-circle-a" data-tooltip="PF2E.Actor.Character.Attribute.Apex"></i>
  162. {{else if (and ../editable (includes ../apexAttributeOptions abbrev))}}
  163. <a data-action="apex-attribute">
  164. <i class="apex unselected fa-regular fa-circle-a" data-tooltip="PF2E.Actor.Character.Attribute.Apex"></i>
  165. </a>
  166. {{/if}}
  167. </h2>
  168. <h3 class="modifier" aria-label="PF2E.ModifierTitle">
  169. {{numberFormat attribute.mod decimals=0 sign=true}}
  170. </h3>
  171. <div class="label details-label">{{localize attribute.label}}</div>
  172. </li>
  173. {{/each}}
  174. </ol>
  175. </section>
  176. </div>
  177. {{#*inline "detailItem"}}
  178. <span class="details-label">{{localize (concat "TYPES.Item." type)}}</span>
  179. <h3>
  180. <span class="value">{{item.name}}</span>
  181. {{#if @root.options.editable}}
  182. {{#if item}}
  183. <div class="detail-item-control" data-item-id="{{item.id}}">
  184. <i class="fa-solid fa-fw fa-ellipsis-v"></i>
  185. </div>
  186. {{else}}
  187. <a class="open-compendium" data-compendium={{ compendium }}><i class="fa-solid fa-fw fa-plus-circle"></i></a>
  188. {{/if}}
  189. {{/if}}
  190. </h3>
  191. {{/inline}}