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.

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