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.

160 lines
8.7 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="size-select traits-list-item tag size" data-property="system.traits.size.value">
  111. {{#select data.traits.size.value}}
  112. {{#each actorSizes as |label key|}}
  113. <option value="{{key}}">{{localize label}}</option>
  114. {{/each}}
  115. {{/select}}
  116. </select>
  117. </div>
  118. </div>
  119. {{!-- Traits Selector --}}
  120. <div class="flexrow">
  121. <input class="tags paizo-style tag-selector" name="system.traits.value" value="{{json traitTagifyData}}" data-dtype="JSON"
  122. {{#if (eq data.traits.value.length 0)}}placeholder="{{localize "PF2E.Traits"}}"{{/if}} />
  123. </div>
  124. {{!-- Blurb --}}
  125. <div class="flexrow">
  126. <input name="system.details.blurb" type="text" value="{{data.details.blurb}}" />
  127. </div>
  128. </header>
  129. {{!-- --}}
  130. {{!-- Body --}}
  131. {{!-- --}}
  132. <section class="sheet-body notes">
  133. {{!-- Description --}}
  134. <div class="notes-section public-notes section-container">
  135. <h4>{{localize "PF2E.NPC.PublicNotes"}}</h4>
  136. <div class="notes-text">
  137. {{editor enrichedContent.publicNotes target="system.details.publicNotes" button=true editable=editable}}
  138. </div>
  139. </div>
  140. {{#if user.isGM}}
  141. {{!-- Private Notes --}}
  142. <div class="notes-section private-notes section-container">
  143. <h4>{{localize "PF2E.NPC.PrivateNotes"}}</h4>
  144. <div class="notes-text">
  145. {{editor enrichedContent.privateNotes target="system.details.privateNotes" button=true editable=editable}}
  146. </div>
  147. </div>
  148. {{!-- Publication --}}
  149. <div class="notes-section publication">
  150. <h4>Publication</h4>
  151. <div class="notes-text">
  152. {{> "systems/pf2e/templates/partials/publication-data.hbs" path="system.details.publication" data=data.details.publication}}
  153. </div>
  154. </div>
  155. {{/if}}
  156. </section>
  157. </div>
  158. </form>