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.

345 lines
17 KiB

  1. <!-- HEALTH -->
  2. <div class="sidebar_title">
  3. <h2>{{localize "PF2E.HitPointsHeader"}}</h2>
  4. <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-hp-modifiers">
  5. <i class="fa-solid fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}
  6. </button>
  7. </div>
  8. <div class="hitpoints">
  9. <div class="hp-big">
  10. <div class="container temp-hp">
  11. <label for="{{options.id}}-pc-hp-temp" class="sidebar_label">{{localize "PF2E.TempHitPointsShortLabel"}}</label>
  12. <div class="data-value" title="{{localize "PF2E.TempHPTitle"}}">
  13. <input name="system.attributes.hp.temp" id="{{options.id}}-pc-hp-temp" type="number" value="{{data.attributes.hp.temp}}" placeholder="0" />
  14. </div>
  15. </div>
  16. <div class="container current-hp">
  17. <label for="{{options.id}}-pc-hp" class="sidebar_label">{{localize "PF2E.CurrentHitPointsShortLabel"}}</label>
  18. <div class="data-value" title="{{localize "PF2E.CurrentHPTitle"}}">
  19. <input name="system.attributes.hp.value" id="{{options.id}}-pc-hp" type="number" value="{{data.attributes.hp.value}}" placeholder="10" />
  20. </div>
  21. </div>
  22. <div class="container max-hp">
  23. <span class="sidebar_label">{{localize "PF2E.MaxHitPointsShortLabel"}}</span>
  24. <div class="data-value">
  25. <h2>
  26. {{~data.attributes.hp.max~}}
  27. {{~#if data.attributes.hp.unrecoverable~}}
  28. <span class="unrecoverable" data-tooltip="{{localize "PF2E.Actor.HitPoints.Unrecoverable" value=data.attributes.hp.unrecoverable}}">*</span>
  29. {{~/if~}}
  30. </h2>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="hp-small">
  35. <a class="rollable roll-icon{{#if (not data.attributes.dying.value)}} disabled{{/if}}" data-action="recovery-check" title="{{localize "PF2E.Check.Specific.Recovery"}}">
  36. {{> "systems/pf2e/templates/actors/character/icons/d20.hbs"}}
  37. </a>
  38. <a class="dots dying" title="{{localize "PF2E.condition.dying.summary"}}">
  39. <span class="sidebar_label">{{localize "PF2E.condition.dying.name"}}</span>
  40. {{> "systems/pf2e/templates/actors/partials/dying-pips.hbs"}}
  41. </a>
  42. <a class="dots wounded" title="{{localize "PF2E.condition.wounded.summary"}}">
  43. <span class="sidebar_label">{{localize "PF2E.condition.wounded.name"}}</span>
  44. <span class="pips">
  45. {{#times data.attributes.wounded.value}}<i class="fa-solid fa-dot-circle"></i>{{/times}}
  46. {{#times dying.remainingWounded}}<i class="fa-regular fa-circle"></i>{{/times}}
  47. </span>
  48. </a>
  49. <a class="roll-icon rest" data-action="rest" title="{{localize "PF2E.Actor.Character.Rest.Label"}}">
  50. <i class="fa-solid fa-bed"></i>
  51. </a>
  52. </div>
  53. </div>
  54. {{#with data.attributes.hp}}
  55. {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title="PF2E.HitPointsHeader"}}
  56. {{/with}}
  57. <!-- STAMINA (if enabled) -->
  58. {{#if hasStamina}}
  59. <div class="sidebar_title">
  60. <h2>{{localize "PF2E.StaminaPointsHeader"}}</h2>
  61. </div>
  62. <ol class="stamina">
  63. <li class="sp">
  64. <label for="{{options.id}}-pc-stamina" class="sidebar_label">{{localize "PF2E.StaminaPointsShortLabel"}}</label>
  65. <span class="hp-current stamina-group" title="{{localize "PF2E.CurrentStaminaTitle"}}">
  66. <input
  67. id="{{options.id}}-pc-stamina"
  68. class="left"
  69. type="number"
  70. min="0"
  71. max="{{data.attributes.hp.sp.max}}"
  72. name="system.attributes.hp.sp.value"
  73. value="{{data.attributes.hp.sp.value}}"
  74. />
  75. <span class="divider">&sol;</span>
  76. <input class="right" type="number" value="{{data.attributes.hp.sp.max}}" disabled="disabled" />
  77. </span>
  78. </li>
  79. <li class="resolve">
  80. <label for="{{options.id}}-pc-resolve" class="sidebar_label">{{localize "PF2E.ResolvePointsShortLabel"}}</label>
  81. <span class="hp-max stamina-group" title="{{localize "PF2E.ResolveTitle"}}">
  82. <input
  83. id="{{options.id}}-pc-resolve"
  84. class="left"
  85. type="number"
  86. min="0"
  87. max="{{data.resources.resolve.max}}"
  88. name="system.resources.resolve.value"
  89. value="{{data.resources.resolve.value}}"
  90. />
  91. <span class="divider">&sol;</span>
  92. <input class="right" type="number" value="{{data.resources.resolve.max}}" disabled="disabled" />
  93. </span>
  94. </li>
  95. </ol>
  96. {{/if}}
  97. <!-- ARMOR CLASS -->
  98. <div class="sidebar_title">
  99. <h2>{{localize "PF2E.ArmorClassLabel"}}</h2>
  100. <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-armor-modifiers">
  101. <i class="fa-solid fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}
  102. </button>
  103. </div>
  104. <div class="armor-class">
  105. <div class="shield ac">
  106. <div class="data-value">
  107. <h2>{{data.attributes.ac.value}}</h2>
  108. </div>
  109. <span class="sidebar_label">{{localize "PF2E.ArmorClassShortLabel"}}</span>
  110. </div>
  111. <div class="shield hp">
  112. <div class="data-value">
  113. <input id="{{@root.options.id}}-shield-hp" type="number" placeholder="0" name="system.attributes.shield.hp.value" value="{{data.attributes.shield.hp.value}}" title="{{localize "PF2E.ShieldCurrentTitle"}}" />
  114. </div>
  115. <label for="{{@root.options.id}}-shield-hp" class="sidebar_label">{{localize "PF2E.ShieldCurrentLabel"}}</label>
  116. </div>
  117. <div class="shield-stats">
  118. <ol>
  119. <li>
  120. <div class="shield-label">
  121. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.9 14">
  122. <path
  123. d="M5.9 13.5c-.9-.4-1.9-1-2.7-1.6-.7-.5-1.3-1.1-1.9-1.7C.8 9.6.5 8.9.5 8.1v-6L6 .5l5.4 1.6v6c0 .7-.3 1.5-.8 2.1-.6.7-1.2 1.3-1.9 1.7-.9.6-1.8 1.2-2.8 1.6z"
  124. fill="#fff"
  125. />
  126. <text x="6" y="8.5" font-family="Verdana" text-anchor="middle" font-size="5" fill="black">{{localize "PF2E.ArmorClassShortLabel"}}</text>
  127. </svg>
  128. </div>
  129. <span class="data-value" title="{{localize "PF2E.ShieldACBonusTitle"}}">
  130. <input type="number" placeholder="0" value="{{data.attributes.shield.ac}}" title="{{localize "PF2E.ShieldACBonusTitle"}}" readonly="readonly" />
  131. </span>
  132. </li>
  133. <li>
  134. <div class="shield-label">
  135. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.9 14">
  136. <path
  137. d="M5.9 13.5c-.9-.4-1.9-1-2.7-1.6-.7-.5-1.3-1.1-1.9-1.7C.8 9.6.5 8.9.5 8.1v-6L6 .5l5.4 1.6v6c0 .7-.3 1.5-.8 2.1-.6.7-1.2 1.3-1.9 1.7-.9.6-1.8 1.2-2.8 1.6z"
  138. fill="#fff"
  139. />
  140. <text x="6" y="8.5" font-family="Verdana" text-anchor="middle" font-size="5" fill="black">{{localize "PF2E.ShieldHardnessShortLabel"}}</text>
  141. </svg>
  142. </div>
  143. <span class="data-value" title="{{localize "PF2E.ShieldHardnessTitle"}}">
  144. <input type="number" placeholder="0" value="{{data.attributes.shield.hardness}}" readonly="readonly" />
  145. </span>
  146. </li>
  147. <li>
  148. <div class="shield-label">
  149. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.9 14">
  150. <path
  151. d="M5.9 13.5c-.9-.4-1.9-1-2.7-1.6-.7-.5-1.3-1.1-1.9-1.7C.8 9.6.5 8.9.5 8.1v-6L6 .5l5.4 1.6v6c0 .7-.3 1.5-.8 2.1-.6.7-1.2 1.3-1.9 1.7-.9.6-1.8 1.2-2.8 1.6z"
  152. fill="#fff"
  153. />
  154. <text x="6" y="8.5" font-family="Verdana" text-anchor="middle" font-size="5" fill="black">{{localize "PF2E.ShieldBTShortLabel"}}</text>
  155. </svg>
  156. </div>
  157. <span class="data-value" title="{{localize "PF2E.ShieldBTTitle"}}">
  158. <input type="number" value="{{data.attributes.shield.brokenThreshold}}" readonly="readonly" />
  159. </span>
  160. </li>
  161. </ol>
  162. </div>
  163. <div class="armor_footer">
  164. <div class="shield-max">
  165. <label for="{{@root.options.id}}-shield-max" class="sidebar_label" title="{{localize "PF2E.ShieldMaxTitle"}}">
  166. {{localize "PF2E.ShieldLabel"}}<br />{{localize "PF2E.MaxHitPointsShortLabel"}}
  167. </label>
  168. <span class="data-value" title="{{localize "PF2E.ShieldMaxTitle"}}">
  169. <input id="{{@root.options.id}}-shield-max" type="number" placeholder="0" value="{{data.attributes.shield.hp.max}}" readonly="readonly" />
  170. </span>
  171. </div>
  172. <div class="shield-status">
  173. {{#if data.attributes.shield.destroyed}}
  174. <span class="sidebar_label">{{localize "PF2E.Item.Physical.Destroyed"}}</span>
  175. <i class="fa-regular fa-times-circle"></i>
  176. {{else}}
  177. <span class="sidebar_label">{{localize "PF2E.Item.Physical.Broken"}}</span>
  178. {{#if data.attributes.shield.broken}}<i class="fa-regular fa-times-circle"></i>{{else}}<i class="fa-regular fa-circle"></i>{{/if}}
  179. {{/if}}
  180. </div>
  181. </div>
  182. </div>
  183. {{#with data.attributes.ac}}
  184. {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title="PF2E.ArmorClassLabel"}}
  185. {{/with}}
  186. <!-- Perception -->
  187. <div class="sidebar_title">
  188. <h2>{{localize "PF2E.PerceptionHeader"}}</h2>
  189. <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-perception-modifiers">
  190. <i class="fa-solid fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}
  191. </button>
  192. </div>
  193. <div class="roll-data perception-sidebar">
  194. <a class="roll-icon attribute-name" data-action="perception-check" title="{{localize "PF2E.Check.Specific.Perception.Label"}}">
  195. {{> "systems/pf2e/templates/actors/character/icons/d20.hbs"}}
  196. </a>
  197. <a class="roll-icon attribute-name" data-action="perception-check" data-secret="true" title="{{localize "PF2E.Check.Specific.Perception.Secret"}}">
  198. <i class="fa-solid fa-eye-slash"></i>
  199. </a>
  200. <h3>{{numberFormat data.attributes.perception.value decimals=0 sign=true}}</h3>
  201. <div class="perception-prof button-group skill-container">
  202. <select class="perception-proficiency pf-rank adjust-stat-select{{#if rank.immutable}} readonly{{/if}}" data-property="system.attributes.perception.rank" data-rank="{{data.attributes.perception.rank}}" data-dtype="Number">
  203. {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" proflevel=data.attributes.perception.rank}}
  204. </select>
  205. </div>
  206. </div>
  207. {{#with data.attributes.perception}}
  208. {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title="PF2E.PerceptionHeader"}}
  209. {{/with}}
  210. <!-- Initiative -->
  211. <div class="sidebar_title">
  212. <h2>{{localize "PF2E.InitiativeLabel"}}</h2>
  213. <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-initiative-modifiers">
  214. <i class="fa-solid fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}
  215. </button>
  216. </div>
  217. <div class="roll-data initiative-sidebar">
  218. <a class="roll-icon roll-init" data-action="roll-initiative">
  219. {{> "systems/pf2e/templates/actors/character/icons/d20.hbs"}}
  220. </a>
  221. <h3>{{numberFormat data.attributes.initiative.totalModifier decimals=0 sign=true}}</h3>
  222. <h4 class="initiative-select">
  223. <select name="system.attributes.initiative.statistic">
  224. {{#select data.attributes.initiative.statistic}}
  225. <option value="perception">{{localize "PF2E.PerceptionLabel"}}</option>
  226. {{#each data.skills as |skill|}}
  227. <option value="{{skill.slug}}">{{localize skill.label}}</option>
  228. {{/each}}
  229. {{/select}}
  230. </select>
  231. </h4>
  232. </div>
  233. {{#with data.attributes.initiative}}
  234. {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title=label}}
  235. {{/with}}
  236. <!-- Saves -->
  237. <div class="sidebar_title">
  238. <h2>{{localize "PF2E.SavesHeader"}}</h2>
  239. </div>
  240. <ul class="sidebar-saves">
  241. {{#each data.saves as |save sid|}}
  242. <li class="roll-data" data-save="{{sid}}">
  243. <h2 class="sidebar_label">{{localize save.label}}</h2>
  244. <div class="save-prof button-group skill-container">
  245. <select class="save-proficiency pf-rank adjust-stat-select{{#if rank.immutable}} readonly{{/if}}" data-property="system.saves.{{sid}}.rank" data-rank="{{save.rank}}" data-dtype="Number">
  246. {{> "systems/pf2e/templates/actors/character/partials/proficiencylevels-dropdown.hbs" proflevel=save.rank}}
  247. </select>
  248. </div>
  249. <div class="save-roll">
  250. <a class="roll-icon save-name">
  251. {{> "systems/pf2e/templates/actors/character/icons/d20.hbs"}}
  252. </a>
  253. <h3>{{numberFormat save.totalModifier decimals=0 sign=true}}</h3>
  254. </div>
  255. <button type="button" class="modifiers_button hover" data-tooltip-content="#{{@root.options.id}}-{{save.slug}}-modifiers">
  256. {{localize "PF2E.ModifiersTitle"}}
  257. </button>
  258. {{#with save}}
  259. {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title=label}}
  260. {{/with}}
  261. </li>
  262. {{/each}}
  263. </ul>
  264. <!-- Class DC -->
  265. {{#if classDCs.dcs}}
  266. <div class="sidebar_title">
  267. <h2>{{#if (gt classDCs.dcs.length 1)}}{{localize "PF2E.Actor.Character.ClassDC.Plural"}}{{else}}{{localize "PF2E.Actor.Character.ClassDC.Label"}}{{/if}}</h2>
  268. {{#unless classDCs.perDCDetails}}
  269. <button type="button" class="modifiers_button hover" data-tooltip-content="#{{options.id}}-{{classDCs.primary}}-modifiers"><i class="fa-solid fa-eye"></i> {{localize "PF2E.ModifiersTitle"}}</button>
  270. {{/unless}}
  271. </div>
  272. {{#each classDCs.dcs as |classDC|}}
  273. <div class="roll-data difficulty-checks class-dc{{#unless classDC.primary}} secondary{{/unless}}">
  274. <h3>
  275. {{classDC.dc}}
  276. {{#if ../classDCs.perDCDetails}}<span class="sidebar_label">{{classDC.label}}</span>{{/if}}
  277. </h3>
  278. <div class="classdc-rank">
  279. <span class="pf-rank {{classDC.rankSlug}}">{{classDC.rankName}}</span>
  280. {{#if ../classDCs.perDCDetails}}
  281. <button type="button" class="modifiers_button hover" data-tooltip-content="#{{../options.id}}-{{classDC.slug}}-modifiers"><i class="fa-solid fa-eye"></i></button>
  282. {{/if}}
  283. </div>
  284. {{#with classDC}}
  285. {{> "systems/pf2e/templates/actors/partials/modifiers-tooltip.hbs" title="PF2E.Actor.Character.ClassDC.Label"}}
  286. {{/with}}
  287. </div>
  288. {{/each}}
  289. {{/if}}
  290. <!-- Immunities -->
  291. <div class="sidebar_title">
  292. <h2>{{localize "PF2E.ImmunitiesLabel"}}</h2>
  293. </div>
  294. <ol class="immunities tags">
  295. {{#each data.attributes.immunities as |immunity|}}
  296. <li class="tag tag_secondary" data-immunity="{{immunity.type}}">{{immunity.label}}</li>
  297. {{/each}}
  298. {{#if editable}}
  299. <li class="tag edit-btn">
  300. <a data-action="edit-immunities" title="{{localize "PF2E.NPC.EditImmunities"}}"><i class="fa-solid fa-edit"></i></a>
  301. </li>
  302. {{/if}}
  303. </ol>
  304. <!-- Weaknesses -->
  305. <div class="sidebar_title">
  306. <h2>{{localize "PF2E.WeaknessesLabel"}}</h2>
  307. </div>
  308. <ol class="weaknesses tags">
  309. {{#each data.attributes.weaknesses as |weakness|}}
  310. <li class="tag tag_secondary" data-weakness="{{weakness.type}}">{{weakness.label}}</li>
  311. {{/each}}
  312. {{#if editable}}
  313. <li class="tag edit-btn">
  314. <a data-action="edit-weaknesses" title="{{localize "PF2E.NPC.EditWeaknesses"}}"><i class="fa-solid fa-edit"></i></a>
  315. </li>
  316. {{/if}}
  317. </ol>
  318. <!-- Resistances -->
  319. <div class="sidebar_title">
  320. <h2>{{localize "PF2E.ResistancesLabel"}}</h2>
  321. </div>
  322. <ol class="resistances tags">
  323. {{#each data.attributes.resistances as |resistance|}}
  324. <li class="tag tag_secondary" data-resistance="{{resistance.type}}">{{resistance.label}}</li>
  325. {{/each}}
  326. {{#if editable}}
  327. <li class="tag edit-btn">
  328. <a data-action="edit-resistances" title="{{localize "PF2E.NPC.EditResistances"}}"><i class="fa-solid fa-edit"></i></a>
  329. </li>
  330. {{/if}}
  331. </ol>