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.

197 lines
9.6 KiB

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