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.

213 lines
11 KiB

1 year ago
1 year ago
1 year ago
  1. <div class="image-container">
  2. <img class="actor-image" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="auto" width="100%" style="margin: 0 auto"/>
  3. <a class="hover-icon" data-action="show-image"><i class="fas fa-image fa-fw"></i></a>
  4. </div>
  5. <div class="side-bar-section armor-section">
  6. {{#with data.attributes.ac as |ac|}}
  7. <div class="side-bar-section-header" title="{{ac.breakdown}}">
  8. <div class="side-bar-label armor-label">
  9. <i class="fas fa-fw fa-shield-alt"></i>
  10. <h4>{{localize "PF2E.ArmorClassShortLabel"}}</h4>
  11. </div>
  12. <div class="armor-base labelled-field">
  13. <input type="number"
  14. class="armor-value adjustable{{#if ac.adjustedHigher}} adjusted-higher{{else if ac.adjustedLower}} adjusted-lower{{/if}}"
  15. data-property="system.attributes.ac.value"
  16. value="{{ac.value}}"
  17. placeholder="0" />
  18. </div>
  19. </div>
  20. <div class="side-bar-section-content">
  21. <input type="text" name="system.attributes.ac.details" value="{{ac.details}}" class="armor-details" placeholder="{{localize "PF2E.NPC.ArmorExtraInfoLabelPlaceholder"}}" />
  22. </div>
  23. {{/with}}
  24. <div class="side-bar-section-content">
  25. {{#if hasHardness}}
  26. <div class="armor-base labelled-field">
  27. <label>{{localize "PF2E.HardnessLabel"}}</label>
  28. <input type="number" data-property="system.attributes.hardness.value" value="{{data.attributes.hardness.value}}" placeholder="0" />
  29. </div>
  30. {{/if}}
  31. </div>
  32. </div>
  33. {{#if hasShield}}
  34. <div class="side-bar-section shield-section{{#if data.attributes.shield.broken}} broken" title="{{localize "PF2E.Item.Physical.Broken"}}{{/if}}">
  35. <div class="side-bar-section-header">
  36. <div class="side-bar-label shield-label">
  37. <i class="fas fa-fw fa-user-shield{{#if data.attributes.shield.broken}} broken{{/if}}"></i>
  38. <h4>{{localize "PF2E.ShieldLabel"}}</h4>
  39. <div class="hit-points">
  40. <input type="number" name="system.attributes.shield.hp.value" value="{{data.attributes.shield.hp.value}}" class="current" placeholder="0" />
  41. <span class="slash">/</span>
  42. <label class="max" title="{{localize "PF2E.ShieldMaxTitle"}}">{{data.attributes.shield.hp.max}}</label>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="side-bar-section-content">
  47. <div class="shield-details">
  48. <label class="label" title="{{localize "PF2E.ShieldACBonusTitle"}}">{{localize "PF2E.ArmorClassShortLabel"}}</label>
  49. <label class="value">{{data.attributes.shield.ac}}</label>
  50. <label class="label" title="{{localize "PF2E.ShieldHardnessTitle"}}">{{localize "PF2E.ShieldHardnessShortLabel"}}</label>
  51. <label class="value">{{data.attributes.shield.hardness}}</label>
  52. <label class="label" title="{{localize "PF2E.ShieldBTTitle"}}">{{localize "PF2E.ShieldBTShortLabel"}}</label>
  53. <label class="value">{{data.attributes.shield.brokenThreshold}}</label>
  54. </div>
  55. </div>
  56. </div>
  57. {{/if}}
  58. <div class="health-section side-bar-section">
  59. <div class="side-bar-section-header" title="{{data.attributes.hp.breakdown}}">
  60. <div class="side-bar-label">
  61. <i class="fas fa-fw fa-heart"></i>
  62. <h4>{{localize "PF2E.HitPointsShortLabel"}}</h4>
  63. <div class="hit-points">
  64. {{#with data.attributes.hp as |hp|}}
  65. <input type="number" name="system.attributes.hp.value" value="{{hp.value}}" class="current" placeholder="0" />
  66. <span class="slash">/</span>
  67. <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"/>
  68. {{/with}}
  69. </div>
  70. </div>
  71. </div>
  72. <div class="side-bar-section-content">
  73. <div class="hp-temp labelled-field">
  74. <label>{{localize "PF2E.RuleElement.TempHPShortLabel"}}</label>
  75. <input class="hp-temp-value" type="number" name="system.attributes.hp.temp" value="{{data.attributes.hp.temp}}" data-dtype="Number" placeholder="0"/>
  76. </div>
  77. </div>
  78. <div class="side-bar-section-content">
  79. <input class="hp-details" type="text" name="system.attributes.hp.details" value="{{data.attributes.hp.details}}" title="{{data.attributes.hp.details}}" data-dtype="String" placeholder="{{localize "PF2E.NPC.HPExtraInfoLabelPlaceholder"}}"/>
  80. </div>
  81. </div>
  82. <!-- INITIATIVE -->
  83. <div class="initiative side-bar-section">
  84. <div class="side-bar-section-header">
  85. <div class="side-bar-label">
  86. <i class="fa-solid fa-swords fa-fw"></i>
  87. <h4>{{localize "PF2E.InitiativeLabel"}}</h4>
  88. <a class="roll-icon roll-init">
  89. <i class="fas fa-dice-d20"></i>
  90. <div>{{numberFormat data.attributes.initiative.totalModifier decimals=0 sign=true}}</div>
  91. </a>
  92. </div>
  93. </div>
  94. <div class="side-bar-section-content">
  95. <select name="system.attributes.initiative.statistic">
  96. {{#select data.attributes.initiative.statistic}}
  97. <option value="perception">{{localize "PF2E.PerceptionLabel"}}</option>
  98. {{#each data.sortedSkills as |skill|}}
  99. <option value="{{skill.slug}}">{{skill.label}}</option>
  100. {{/each}}
  101. {{/select}}
  102. </select>
  103. </div>
  104. </div>
  105. <!-- IMMUNITIES, WEAKNESSES, AND RESISTANCES -->
  106. <div class="immunities side-bar-section">
  107. <div class="side-bar-section-header{{#unless data.attributes.immunities}} disabled{{/unless}}">
  108. <div class="side-bar-label">
  109. <i class="fas fa-fw fa-ankh"></i>
  110. <h4>{{localize "PF2E.ImmunitiesLabel"}}</h4>
  111. </div>
  112. {{#if options.editable}}
  113. <div class="immunities-controls controls">
  114. <a data-action="edit-immunities" title="{{localize "PF2E.NPC.EditImmunities"}}"><i class="fa-solid fa-edit"></i></a>
  115. </div>
  116. {{/if}}
  117. </div>
  118. <div class="side-bar-section-content">
  119. {{#each data.attributes.immunities as |immunity|}}
  120. <div class="tag-legacy immunity" data-immunity="{{immunity.type}}">{{immunity.label}}</div>
  121. {{/each}}
  122. </div>
  123. </div>
  124. <div class="weaknesses side-bar-section">
  125. <div class="side-bar-section-header{{#unless data.attributes.weaknesses}} disabled{{/unless}}">
  126. <div class="side-bar-label">
  127. <i class="fas fa-fw fa-heart-broken"></i>
  128. <h4>{{localize "PF2E.WeaknessesLabel"}}</h4>
  129. </div>
  130. {{#if options.editable}}
  131. <div class="weaknesses-controls controls">
  132. <a data-action="edit-weaknesses" title="{{localize "PF2E.NPC.EditWeaknesses"}}"><i class="fa-solid fa-edit"></i></a>
  133. </div>
  134. {{/if}}
  135. </div>
  136. <div class="side-bar-section-content">
  137. {{#each data.attributes.weaknesses as |weakness|}}
  138. <div class="tag-legacy weakness" data-weakness="{{weakness.type}}">{{weakness.label}}</div>
  139. {{/each}}
  140. </div>
  141. </div>
  142. <div class="resistances side-bar-section">
  143. <div class="side-bar-section-header{{#unless data.attributes.resistances}} disabled{{/unless}}">
  144. <div class="side-bar-label">
  145. <i class="fas fa-fw fa-shield-virus"></i>
  146. <h4>{{localize "PF2E.ResistancesLabel"}}</h4>
  147. </div>
  148. {{#if options.editable}}
  149. <div class="resistances-controls controls">
  150. <a data-action="edit-resistances" title="{{localize "PF2E.NPC.EditResistances"}}"><i class="fa-solid fa-edit"></i></a>
  151. </div>
  152. {{/if}}
  153. </div>
  154. <div class="side-bar-section-content">
  155. {{#each data.attributes.resistances as |resistance|}}
  156. <div class="tag-legacy resistance" data-resistance="{{resistance.type}}">{{resistance.label}}</div>
  157. {{/each}}
  158. </div>
  159. </div>
  160. <div class="saves">
  161. {{#each data.saves as |save saveType|}}
  162. <div class="container" data-save="{{saveType}}">
  163. <a class="attribute-label rollable" title="{{save.breakdown}}">{{localize save.labelShort}}</a>
  164. <input type="text" value="{{numberFormat save.value decimals=0 sign=true}}" class="modifier adjustable{{#if save.adjustedHigher}} adjusted-higher{{else if save.adjustedLower}} adjusted-lower{{/if}}" data-property="system.saves.{{saveType}}.value" data-dtype="Number" placeholder="0" />
  165. </div>
  166. {{/each}}
  167. </div>
  168. <div class="save-details side-bar-section">
  169. <div class="side-bar-section-content">
  170. <input type="text" name="system.attributes.allSaves.value" value="{{data.attributes.allSaves.value}}" title="{{data.attributes.allSaves.value}}" placeholder="{{localize "PF2E.NPC.SavesExtraInfoLabelPlaceholder"}}" />
  171. </div>
  172. </div>
  173. <!-- MOVEMENT -->
  174. <div class="speed-section side-bar-section">
  175. <div class="side-bar-section-header">
  176. <div class="side-bar-label">
  177. <i class="fas fa-fw fa-shoe-prints"></i>
  178. <h4>{{localize "PF2E.NPC.SpeedLabel"}}</h4>
  179. </div>
  180. {{#if options.editable}}
  181. <div class="speed-controls controls">
  182. <a class="tag-selector edit" data-tag-selector="speed-types" data-options="speedTypes" data-has-values="true" title="{{localize 'PF2E.NPC.EditSpeed'}}"><i class="fas fa-edit"></i></a>
  183. </div>
  184. {{/if}}
  185. </div>
  186. <div class="side-bar-section-content">
  187. <div class="land-speed flexrow">
  188. <input type="number"
  189. class="land-speed-value adjustable{{#if speeds.land.adjustedHigher}} adjusted-higher{{else if speeds.land.adjustedLower}} adjusted-lower{{/if}}"
  190. data-property="system.attributes.speed.value"
  191. value="{{speeds.land.value}}"
  192. placeholder="0" />
  193. <input type="text" class="speed-details" name="system.attributes.speed.details" value="{{speeds.land.details}}" placeholder="{{localize "PF2E.NPC.SpeedExtraInfoLabelPlaceholder"}}" />
  194. </div>
  195. <div class="other-speeds">
  196. {{#each speeds as |speed type|}}
  197. {{#if (and speed (not (eq type "land")))}}
  198. <div class="tag-legacy speed" data-speed="{{type}}">
  199. {{localize speed.label}}
  200. <span class="adjustable{{#if speed.adjustedHigher}} adjusted-higher{{else if speed.adjustedLower}} adjusted-lower{{/if}}">
  201. {{speed.value}}
  202. </span>
  203. </div>
  204. {{/if}}
  205. {{/each}}
  206. </div>
  207. </div>
  208. </div>