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.

130 lines
6.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <div class="sidebar" data-tooltip-class="pf2e">
  2. <section>
  3. <div class="sidebar-title">
  4. <h2>{{localize "PF2E.DefensesLabel"}}</h2>
  5. </div>
  6. {{#if (or editing hasDefenses)}}
  7. <div class="health-line">
  8. <div class="health valued-icon">
  9. <i class="fa-solid fa-heart"></i>
  10. <input name="system.attributes.hp.value" class="current" type="number" value="{{data.attributes.hp.value}}" placeholder="0" />
  11. /
  12. <input name="system.attributes.hp.max" class="max" type="number" value="{{data.attributes.hp.max}}" placeholder="0" />
  13. </div>
  14. <div class="armor-class valued-icon">
  15. <input name="system.attributes.hardness" type="number" value="{{data.attributes.hardness}}" placeholder="0" />
  16. {{localize "PF2E.Actor.Hardness.ShortLabel"}}
  17. </div>
  18. <div class="armor-class valued-icon">
  19. <input name="system.attributes.ac.value" type="number" value="{{data.attributes.ac.value}}" placeholder="0" />
  20. {{localize "PF2E.ArmorClassShortLabel"}}
  21. </div>
  22. </div>
  23. <input class="hp-details" name="system.attributes.hp.details" type="text" value="{{data.attributes.hp.details}}" placeholder="{{localize "PF2E.NPC.HPExtraInfoLabelPlaceholder"}}"/>
  24. {{else}}
  25. {{localize "PF2E.NoneOption"}}
  26. {{/if}}
  27. </section>
  28. {{#if document.isComplex}}
  29. <section>
  30. <div class="sidebar-title">
  31. <h2>{{localize "PF2E.InitiativeLabel"}}</h2>
  32. </div>
  33. <div>
  34. <div class="initiative">
  35. <div class="valued-icon">
  36. <input type="text" value="{{numberFormat data.attributes.stealth.value decimals=0 sign=true}}" data-property="system.attributes.stealth.value" data-dtype="Number" placeholder="N/A" />
  37. </div>
  38. <a class="roll-init{{#if @root.options.editable}} rollable{{/if}}" data-action="roll-initiative">
  39. <i class="fa-solid fa-dice-d20"></i>
  40. {{localize "PF2E.StealthLabel"}}
  41. </a>
  42. </div>
  43. </div>
  44. </section>
  45. {{/if}}
  46. {{#if (or hasSaves editing)}}
  47. <section>
  48. <div class="sidebar-title">
  49. <h2>{{localize "PF2E.SavesHeader"}}</h2>
  50. </div>
  51. <div class="sidebar-saves">
  52. {{#each saves as |save|}}
  53. <div class="save">
  54. <h2 {{#if save.mod includeZero=true}}class="save-name{{#if @root.options.editable}} rollable{{/if}}" data-save="{{save.type}}"{{/if}}>
  55. {{#if save.mod includeZero=true}}
  56. <i class="fa-solid fa-dice-d20"></i>
  57. {{/if}}
  58. {{localize save.label}}
  59. </h2>
  60. <span class="valued-icon">
  61. <input type="text" value="{{#if save.mod includeZero=true}}{{numberFormat save.mod decimals=0 sign=true}}{{/if}}" data-property="system.saves.{{save.type}}.value" data-dtype="Number" placeholder="N/A" />
  62. </span>
  63. </div>
  64. {{/each}}
  65. </div>
  66. </section>
  67. {{/if}}
  68. <section class="emits-sound">
  69. <div class="sidebar-title">
  70. <h2>
  71. <span>{{localize "PF2E.Actor.Hazard.EmitsSound.Title"}}</span>
  72. <i class="fa-solid fa-info-circle" data-tooltip="PF2E.Actor.Hazard.EmitsSound.Hint" data-tooltip-direction="RIGHT"></i>
  73. </h2>
  74. </div>
  75. <select name="system.attributes.emitsSound">
  76. {{#select data.attributes.emitsSound}}
  77. <option value="true">{{localize "PF2E.Actor.Hazard.EmitsSound.True"}}</option>
  78. <option value="false">{{localize "PF2E.Actor.Hazard.EmitsSound.False"}}</option>
  79. <option value="encounter">{{localize "PF2E.Actor.Hazard.EmitsSound.Encounter"}}</option>
  80. {{/select}}
  81. </select>
  82. </section>
  83. {{#if (or editing hasIWR)}}
  84. <section>
  85. <div class="sidebar-title">
  86. <h2>{{localize "PF2E.ImmunitiesLabel"}}</h2>
  87. {{#if editing}}
  88. <a data-action="edit-immunities" title="{{localize "PF2E.NPC.EditImmunities"}}"><i class="fa-solid fa-edit"></i></a>
  89. {{/if}}
  90. </div>
  91. <div class="tags">
  92. {{#each data.attributes.immunities as |immunity|}}
  93. <span class="tag" data-immunity="{{immunity.type}}">{{immunity.label}}</span>
  94. {{/each}}
  95. </div>
  96. </section>
  97. <section>
  98. <div class="sidebar-title">
  99. <h2>{{localize "PF2E.WeaknessesLabel"}}</h2>
  100. {{#if editing}}
  101. <a data-action="edit-weaknesses" title="{{localize "PF2E.NPC.EditWeaknesses"}}"><i class="fa-solid fa-edit"></i></a>
  102. {{/if}}
  103. </div>
  104. <div class="tags">
  105. {{#each data.attributes.weaknesses as |weakness|}}
  106. <span class="tag" data-weakness="{{weakness.type}}">{{weakness.label}}</span>
  107. {{/each}}
  108. </div>
  109. </section>
  110. <section>
  111. <div class="sidebar-title">
  112. <h2>{{localize "PF2E.ResistancesLabel"}}</h2>
  113. {{#if editing}}
  114. <a data-action="edit-resistances" title="{{localize "PF2E.NPC.EditResistances"}}"><i class="fa-solid fa-edit"></i></a>
  115. {{/if}}
  116. </div>
  117. <div class="tags">
  118. {{#each data.attributes.resistances as |resistance|}}
  119. <span class="tag" data-resistance="{{resistance.type}}">{{resistance.label}}</span>
  120. {{/each}}
  121. </div>
  122. </section>
  123. {{/if}}
  124. </div>