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.

167 lines
9.1 KiB

  1. <form class="npc-sheet simple" autocomplete="off">
  2. {{!-- --}}
  3. {{!-- Sidebar --}}
  4. {{!-- --}}
  5. <div class="sidebar">
  6. {{!-- Image --}}
  7. <div class="image-container">
  8. <img class="actor-image" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="auto" width="100%" style="margin: 0 auto"/>
  9. <a class="hover-icon" data-action="show-image"><i class="fa-solid fa-image fa-fw"></i></a>
  10. </div>
  11. {{!-- HP --}}
  12. <div class="health-section side-bar-section">
  13. <div class="side-bar-section-header" title="{{data.attributes.hp.breakdown}}">
  14. <div class="side-bar-label">
  15. <i class="fa-solid fa-fw fa-heart"></i>
  16. <h4>{{localize "PF2E.HitPointsShortLabel"}}</h4>
  17. <div class="hit-points">
  18. {{#with data.attributes.hp as |hp|}}
  19. <input type="number" name="system.attributes.hp.value" value="{{hp.value}}" class="current" placeholder="0" />
  20. <span class="slash">/</span>
  21. <input type="text" class="max adjustable{{#if (lt hp.max 10)}} lt10{{else if (lt hp.max 100)}} lt100{{else}} lt1000{{/if}}{{#if hp.adjustedHigher}} adjusted-higher{{else if hp.adjustedLower}} adjusted-lower{{/if}}" data-property="system.attributes.hp.max" value="{{hp.max}}" data-dtype="Number" placeholder="0" />
  22. {{/with}}
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. {{!-- Will --}}
  28. <div class="side-bar-section will">
  29. <div class="side-bar-section-header value{{data.saves.will.value}}">
  30. <div class="side-bar-label labelled-field" data-save="will">
  31. <a class="attribute-label rollable" title="{{data.saves.will.breakdown}}">{{localize "PF2E.SavesWill"}}</a>
  32. <input type="text" value="{{numberFormat data.saves.will.value decimals=0 sign=true}}" class="modifier" data-property="system.saves.will.value" data-dtype="Number" placeholder="0" />
  33. </div>
  34. </div>
  35. </div>
  36. {{!-- Perception --}}
  37. <div class="side-bar-section senses">
  38. <div class="side-bar-section-header value{{data.attributes.perception.value}}">
  39. <div class="perception side-bar-label labelled-field" data-attribute="perception">
  40. <a class="attribute-label rollable">{{localize "PF2E.PerceptionHeader"}}</a>
  41. {{#with data.attributes.perception as |perception|}}
  42. <input type="text" value="{{numberFormat perception.value decimals=0 sign=true}}" class="modifier" data-property="system.attributes.perception.value" data-dtype="Number" placeholder="0" />
  43. {{/with}}
  44. </div>
  45. </div>
  46. <div class="section-body">
  47. {{# if options.editable}}
  48. <input name="system.traits.senses.value" type="text" value="{{data.traits.senses.value}}" title="{{data.traits.senses.value}}" placeholder="" />
  49. {{else}}
  50. <span>{{data.traits.senses.value}}</span>
  51. {{/if}}
  52. </div>
  53. </div>
  54. {{!-- Skills --}}
  55. <div class="skills side-bar-section">
  56. <div class="side-bar-section-header">
  57. <div class="side-bar-label labelled-field">
  58. <label class="attribute-label">{{localize "PF2E.SkillsLabel"}}</label>
  59. {{#if options.editable}}
  60. <div class="skills-controls controls" for="data.skills">
  61. <a class="skills-edit edit" data-options="skill" title="{{localize "PF2E.NPC.EditSkills"}}"><i class="fa-solid fa-edit"></i></a>
  62. </div>
  63. {{/if}}
  64. </div>
  65. </div>
  66. <div class="side-bar-section-body">
  67. <div class="list">
  68. {{#each data.sortedSkills as |skill id|}}
  69. {{#if skill.visible}}
  70. <div class="skill-entry tag-legacy" data-skill="{{id}}">
  71. <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>
  72. {{#if skill.variants}}
  73. {{#each skill.variants as |variant variantId|}}
  74. <a class="rollable variant" data-skill="{{id}}" data-options="{{variant.options}}">({{variant.label}})</a>
  75. {{/each}}
  76. {{/if}}
  77. </div>
  78. {{/if}}
  79. {{/each}}
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. {{!-- --}}
  85. {{!-- Body --}}
  86. {{!-- --}}
  87. <div class="npc-body">
  88. {{!-- --}}
  89. {{!-- Header --}}
  90. {{!-- --}}
  91. <header class="npc-sheet-header">
  92. {{!-- Name & Level --}}
  93. <div class="name flexrow bottom-separator">
  94. <input class="name-value" name="name" type="text" value="{{actor.name}}" placeholder="{{localize "PF2E.CharacterNamePlaceholder"}}" spellcheck="false" />
  95. <label class="level-label">{{localize "PF2E.NPC.Creature"}}</label>
  96. {{#with data.details.level as |level|}}
  97. <input class="level adjustable{{#if level.adjustedHigher}} adjusted-higher{{else if level.adjustedLower}} adjusted-lower{{/if}}" type="text" data-property="system.details.level.value" value="{{level.value}}" placeholder="1" data-dtype="Number" />
  98. {{/with}}
  99. </div>
  100. {{!-- Traits Dropdowns --}}
  101. <div class="flexrow">
  102. <div class="flexrow tags paizo-style">
  103. <select class="rarity-select traits-list-item tag rarity {{data.traits.rarity}}" data-property="system.traits.rarity">
  104. {{#select data.traits.rarity}}
  105. {{#each rarity as |label key|}}
  106. <option value="{{key}}">{{localize label}}</option>
  107. {{/each}}
  108. {{/select}}
  109. </select>
  110. <select class="alignment-select traits-list-item tag alignment" data-property="system.details.alignment.value">
  111. {{#select data.details.alignment.value}}
  112. {{#each alignments as |label key|}}
  113. <option value="{{key}}">{{localize label}}</option>
  114. {{/each}}
  115. {{/select}}
  116. </select>
  117. <select class="size-select traits-list-item tag size" data-property="system.traits.size.value">
  118. {{#select data.traits.size.value}}
  119. {{#each actorSizes as |label key|}}
  120. <option value="{{key}}">{{localize label}}</option>
  121. {{/each}}
  122. {{/select}}
  123. </select>
  124. </div>
  125. </div>
  126. {{!-- Traits Selector --}}
  127. <div class="flexrow">
  128. <input class="tags paizo-style tag-selector" name="system.traits.value" value="{{json traitTagifyData}}" data-dtype="JSON"
  129. {{#if (eq data.traits.value.length 0)}}placeholder="{{localize "PF2E.Traits"}}"{{/if}} />
  130. </div>
  131. {{!-- Blurb --}}
  132. <div class="flexrow">
  133. <input name="system.details.blurb" type="text" value="{{data.details.blurb}}" />
  134. </div>
  135. </header>
  136. {{!-- --}}
  137. {{!-- Body --}}
  138. {{!-- --}}
  139. <section class="sheet-body notes">
  140. {{!-- Description --}}
  141. <div class="notes-section public-notes section-container">
  142. <h4>{{localize "PF2E.NPC.PublicNotes"}}</h4>
  143. <div class="notes-text">
  144. {{editor enrichedContent.publicNotes target="system.details.publicNotes" button=true editable=editable}}
  145. </div>
  146. </div>
  147. {{#if user.isGM}}
  148. {{!-- Private Notes --}}
  149. <div class="notes-section private-notes section-container">
  150. <h4>{{localize "PF2E.NPC.PrivateNotes"}}</h4>
  151. <div class="notes-text">
  152. {{editor enrichedContent.privateNotes target="system.details.privateNotes" button=true editable=editable}}
  153. </div>
  154. </div>
  155. {{!-- Publication --}}
  156. <div class="notes-section publication">
  157. <h4>Publication</h4>
  158. <div class="notes-text">
  159. {{> "systems/pf2e/templates/partials/publication-data.hbs" path="system.details.publication" data=data.details.publication}}
  160. </div>
  161. </div>
  162. {{/if}}
  163. </section>
  164. </div>
  165. </form>