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.

236 lines
12 KiB

1 year ago
  1. <form class="{{cssClass}} flexcol" autocomplete="off">
  2. {{!-- NPC Sheet Header --}}
  3. <header class="sheet-header flexrow">
  4. <img class="profile" src="{{actor.img}}" data-tooltip="{{actor.name}}" data-edit="img"/>
  5. <section class="header-details flexrow">
  6. {{> "dnd5e.actor-warnings"}}
  7. <h1 class="charname">
  8. <input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'DND5E.Name' }}"/>
  9. </h1>
  10. <aside class="header-exp flexcol">
  11. <div class="cr">
  12. <label>{{ localize "DND5E.AbbreviationCR" }}</label>
  13. <input name="system.details.cr" type="text" value="{{labels.cr}}" placeholder="1"/>
  14. </div>
  15. <div class="experience">
  16. <span>{{system.details.xp.value}} XP</span>
  17. </div>
  18. <div class="proficiency">
  19. <span>
  20. {{ localize "DND5E.Proficiency" }} {{labels.proficiency}}
  21. </span>
  22. </div>
  23. </aside>
  24. {{!-- Character Summary --}}
  25. <ul class="summary flexrow">
  26. <li class="size">
  27. <span>{{lookup config.actorSizes system.traits.size}}</span>
  28. </li>
  29. <li class="alignment">
  30. <input type="text" name="system.details.alignment" value="{{system.details.alignment}}" placeholder="{{ localize 'DND5E.Alignment' }}"/>
  31. </li>
  32. <li class="creature-type">
  33. <span data-tooltip="{{labels.type}}">{{labels.type}}</span>
  34. <a class="config-button" data-action="type" data-tooltip="DND5E.CreatureTypeConfig">
  35. <i class="fas fa-cog"></i>
  36. </a>
  37. </li>
  38. <li class="source">
  39. <input type="text" name="system.details.source" value="{{system.details.source}}"
  40. placeholder="{{ localize 'DND5E.Source' }}"/>
  41. </li>
  42. </ul>
  43. {{!-- Header Attributes --}}
  44. <ul class="attributes flexrow">
  45. <li class="attribute health">
  46. <h4 class="attribute-name box-title">{{ localize "DND5E.HitPoints" }}</h4>
  47. <a class="config-button" data-action="hit-points" data-tooltip="DND5E.HitPointsConfig">
  48. <i class="fas fa-cog"></i>
  49. </a>
  50. <div class="attribute-value multiple">
  51. <input name="system.attributes.hp.value" type="text" value="{{hp.value}}" placeholder="10"
  52. data-tooltip="DND5E.HitPointsCurrent" data-dtype="Number">
  53. <span class="sep"> / </span>
  54. <input name="system.attributes.hp.max" type="text" value="{{hp.max}}" placeholder="10"
  55. data-tooltip="DND5E.HitPointsMax" data-dtype="Number">
  56. </div>
  57. <footer class="attribute-footer flexrow">
  58. <input name="system.attributes.hp.temp" type="text" class="temphp"
  59. placeholder="+{{ localize 'DND5E.Temp' }}" value="{{hp.temp}}"
  60. data-tooltip="DND5E.HitPointsTemp">
  61. <input name="system.attributes.hp.tempmax" type="text" class="temphp"
  62. placeholder="+{{ localize 'DND5E.Max' }}" value="{{hp.tempmax}}"
  63. data-tooltip="DND5E.HitPointsTempMax">
  64. </footer>
  65. </li>
  66. <li class="attribute armor">
  67. <h4 class="attribute-name box-title">{{ localize "DND5E.ArmorClass" }}</h4>
  68. <a class="config-button" data-action="armor" data-tooltip="DND5E.ArmorConfig">
  69. <i class="fas fa-cog"></i>
  70. </a>
  71. <div class="attribute-value" data-attribution="attributes.ac"
  72. data-attribution-caption="DND5E.ArmorClass" data-tooltip-direction="DOWN">
  73. <span>{{system.attributes.ac.value}}</span>
  74. </div>
  75. <footer class="attribute-footer">
  76. <span>{{labels.armorType}}</span>
  77. </footer>
  78. </li>
  79. <li class="attribute movement">
  80. <h4 class="attribute-name box-title">{{ localize "DND5E.Movement" }}</h4>
  81. <a class="config-button" data-action="movement" data-tooltip="DND5E.MovementConfig">
  82. <i class="fas fa-cog"></i>
  83. </a>
  84. <div class="attribute-value">
  85. <span>{{movement.primary}}</span>
  86. </div>
  87. <footer class="attribute-footer">
  88. <span>{{movement.special}}</span>
  89. </footer>
  90. </li>
  91. </ul>
  92. </section>
  93. </header>
  94. {{!-- NPC Sheet Navigation --}}
  95. <nav class="sheet-navigation tabs" data-group="primary">
  96. <a class="item active" data-tab="attributes">{{ localize "DND5E.Attributes" }}</a>
  97. <a class="item" data-tab="features">{{ localize "DND5E.Features" }}</a>
  98. <a class="item" data-tab="spellbook">{{ localize "DND5E.Spellbook" }}</a>
  99. <a class="item" data-tab="effects">{{ localize "DND5E.Effects" }}</a>
  100. <a class="item" data-tab="biography">{{ localize "DND5E.Biography" }}</a>
  101. </nav>
  102. {{!-- NPC Sheet Body --}}
  103. <section class="sheet-body">
  104. <div class="tab attributes flexrow" data-group="primary" data-tab="attributes">
  105. {{!-- Ability Scores --}}
  106. <ul class="ability-scores flexrow">
  107. {{#each abilities as |ability id|}}
  108. <li class="ability {{#if ability.proficient}}proficient{{/if}}" data-ability="{{id}}">
  109. <h4 class="ability-name box-title rollable">{{ability.label}}</h4>
  110. <input type="text" value="{{ability.value}}" name="{{concat "system.abilities." id ".value"}}"
  111. class="ability-score" placeholder="10" data-dtype="Number">
  112. <div class="ability-modifiers flexrow">
  113. <span class="ability-mod" data-tooltip="DND5E.Modifier">
  114. {{numberFormat ability.mod decimals=0 sign=true}}
  115. </span>
  116. <input type="hidden" name="system.abilities.{{id}}.proficient" value="{{ability.baseProf}}"
  117. data-dtype="Number"/>
  118. <a class="proficiency-toggle ability-proficiency" data-tooltip="DND5E.Proficiency">
  119. {{{ability.icon}}}
  120. </a>
  121. <span class="ability-save" data-tooltip="DND5E.SavingThrow">
  122. {{numberFormat ability.save decimals=0 sign=true}}
  123. </span>
  124. </div>
  125. <a class="config-button" data-action="ability" data-tooltip="DND5E.AbilityConfigure">
  126. <i class="fas fa-cog"></i>
  127. </a>
  128. </li>
  129. {{/each}}
  130. </ul>
  131. {{!-- Skills --}}
  132. <ul class="skills-list">
  133. {{#each config.skills as |obj s|}}
  134. {{#with (lookup ../skills s) as |skill|}}
  135. <li class="skill proficiency-row flexrow {{#if skill.value}}proficient{{/if}}" data-property="skills"
  136. data-key="{{s}}">
  137. <input type="hidden" name="system.skills.{{s}}.value"
  138. value="{{skill.baseValue}}" data-dtype="Number">
  139. <input type="hidden" name="system.skills.{{s}}.ability" value="{{skill.ability}}">
  140. <a class="proficiency-toggle skill-proficiency" data-tooltip="{{skill.hover}}">{{{skill.icon}}}</a>
  141. <div class="skill-name-controls">
  142. <h4 class="skill-name rollable">{{skill.label}}</h4>
  143. <a class="config-button" data-action="skill" data-tooltip="DND5E.SkillConfigure">
  144. <i class="fas fa-cog"></i>
  145. </a>
  146. </div>
  147. <span class="skill-ability">{{skill.abbreviation}}</span>
  148. <span class="skill-mod" data-tooltip="{{localize 'DND5E.SkillModifierHint' skill=skill.label}}">
  149. {{numberFormat skill.total decimals=0 sign=true}}
  150. </span>
  151. <span class="skill-passive" data-tooltip="{{localize 'DND5E.SkillPassiveHint' skill=skill.label}}">
  152. ({{skill.passive}})
  153. </span>
  154. </li>
  155. {{/with}}
  156. {{/each}}
  157. </ul>
  158. <section class="center-pane flexcol">
  159. {{!-- Legendary Actions --}}
  160. <div class="counters">
  161. <div class="counter flexrow legendary">
  162. <h4>{{ localize "DND5E.LegAct" }}</h4>
  163. <div class="counter-value">
  164. <input name="system.resources.legact.value" type="text" step="any"
  165. value="{{system.resources.legact.value}}" placeholder="0"
  166. data-tooltip="DND5E.LegActRemaining" data-dtype="Number">
  167. <span class="sep">/</span>
  168. {{numberInput system.resources.legact.max name="system.resources.legact.max" min=0 step=1
  169. placeholder=0}}
  170. </div>
  171. </div>
  172. <div class="counter flexrow legendary">
  173. <h4>{{ localize "DND5E.LegRes" }}</h4>
  174. <div class="counter-value">
  175. <input name="system.resources.legres.value" type="text" step="any"
  176. value="{{system.resources.legres.value}}" placeholder="0"
  177. data-tooltip="DND5E.LegResRemaining" data-dtype="Number">
  178. <span class="sep">/</span>
  179. {{numberInput system.resources.legres.max name="system.resources.legres.max" min=0 step=1
  180. placeholder=0}}
  181. </div>
  182. </div>
  183. <div class="counter flexrow lair">
  184. <h4>{{ localize "DND5E.LairAct" }}</h4>
  185. <div class="counter-value">
  186. <input name="system.resources.lair.value" type="checkbox"
  187. value="{{system.resources.lair.value}}"
  188. data-dtype="Boolean" {{checked system.resources.lair.value}}>
  189. <input name="system.resources.lair.initiative" type="number" step="any"
  190. value="{{system.resources.lair.initiative}}"
  191. placeholder="20" data-tooltip="DND5E.LairActionInitiative">
  192. </div>
  193. </div>
  194. </div>
  195. {{!-- Traits --}}
  196. {{> "dnd5e.actor-traits"}}
  197. </section>
  198. </div>
  199. {{!-- Features Tab --}}
  200. <div class="tab features flexcol" data-group="primary" data-tab="features">
  201. {{> "dnd5e.actor-features" sections=features}}
  202. </div>
  203. {{!-- Spellbook Tab --}}
  204. <div class="tab spellbook flexcol" data-group="primary" data-tab="spellbook">
  205. {{> "dnd5e.actor-spellbook"}}
  206. </div>
  207. {{!-- Effects Tab --}}
  208. <div class="tab effects flexcol" data-group="primary" data-tab="effects">
  209. {{> "dnd5e.active-effects"}}
  210. </div>
  211. {{!-- Biography Tab --}}
  212. <div class="tab biography flexcol" data-group="primary" data-tab="biography">
  213. {{editor biographyHTML target="system.details.biography.value" button=true editable=editable
  214. engine="prosemirror" collaborate=false}}
  215. </div>
  216. </section>
  217. </form>