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.

230 lines
10 KiB

  1. <form autocomplete="off">
  2. <nav>
  3. <a data-tab="charter">
  4. {{localize "PF2E.Kingmaker.KingdomBuilder.Tabs.Charter"}}
  5. {{#if kingdom.build.charter}}<i class="complete fa-solid fa-check"></i>{{/if}}
  6. </a>
  7. <a data-tab="heartland">
  8. {{localize "PF2E.Kingmaker.KingdomBuilder.Tabs.Heartland"}}
  9. {{#if kingdom.build.heartland}}<i class="complete fa-solid fa-check"></i>{{/if}}
  10. </a>
  11. <a data-tab="government">
  12. {{localize "PF2E.Kingmaker.KingdomBuilder.Tabs.Government"}}
  13. {{#if kingdom.build.government}}<i class="complete fa-solid fa-check"></i>{{/if}}
  14. </a>
  15. <a data-tab="ability">{{localize "PF2E.Kingmaker.KingdomBuilder.Tabs.AbilityScores"}}</a>
  16. </nav>
  17. <div class="container">
  18. <section class="tab" data-category="charter" data-tab="charter">
  19. {{> buildElement categories.charter choices=database.charter category="charter"}}
  20. </section>
  21. <section class="tab" data-category="heartland" data-tab="heartland">
  22. {{> buildElement categories.heartland choices=database.heartland category="heartland"}}
  23. </section>
  24. <section class="tab" data-category="government" data-tab="government">
  25. {{> buildElement categories.government choices=database.government category="government"}}
  26. </section>
  27. <section class="tab" data-tab="ability">
  28. <div class="ability-builder">
  29. <header class="row">
  30. <div class="row-heading">
  31. <h3>{{localize "PF2E.Kingmaker.KingdomBuilder.AssignBoostsHeader"}}</h3>
  32. </div>
  33. <div class="abilities">
  34. {{#each abilityLabels as |ability|}}
  35. <div class="row-column">
  36. <h3>{{localize ability}}</h3>
  37. </div>
  38. {{/each}}
  39. </div>
  40. </header>
  41. {{> buildRow
  42. data=build.charter
  43. object=kingdom.charter
  44. section="charter"
  45. title="PF2E.Kingmaker.Kingdom.BuildElement.Charter"
  46. missingText="PF2E.Kingmaker.KingdomBuilder.Missing.Charter"
  47. }}
  48. {{> buildRow
  49. data=build.heartland
  50. object=kingdom.heartland
  51. section="heartland"
  52. title="PF2E.Kingmaker.Kingdom.BuildElement.Heartland"
  53. missingText="PF2E.Kingmaker.KingdomBuilder.Missing.Heartland"
  54. }}
  55. {{> buildRow
  56. data=build.government
  57. object=kingdom.government
  58. section="government"
  59. title="PF2E.Kingmaker.Kingdom.BuildElement.Government"
  60. missingText="PF2E.Kingmaker.KingdomBuilder.Missing.Government"
  61. }}
  62. <hr/>
  63. {{#each build.levelBoosts as |boosts level|}}
  64. <div class="row{{#if ../manual}} not-eligible{{/if}}{{#if (not boosts.eligible)}} not-eligible{{/if}}" data-level="{{level}}">
  65. <div class="row-heading">
  66. {{#if boosts.remaining}}<div class="remaining extra">{{remaining}}</div>{{/if}}
  67. <div class="label">
  68. <div class="description">
  69. {{#if (eq boosts.minLevel boosts.level)}}
  70. {{localize "PF2E.LevelN" level=level}}
  71. {{else}}
  72. {{localize "PF2E.LevelRange" minLevel=boosts.minLevel level=boosts.level}}
  73. {{/if}}
  74. </div>
  75. </div>
  76. </div>
  77. <div class="abilities">
  78. {{#each boosts.buttons as |state|}}
  79. {{> buttons state=state}}
  80. {{/each}}
  81. </div>
  82. </div>
  83. {{/each}}
  84. <div class="row summary-row">
  85. <div class="row-heading">
  86. <div class="hint-container">
  87. <h3>{{localize "PF2E.Kingmaker.KingdomBuilder.FinalizeHeader"}}</h3>
  88. <label class="aspiration">
  89. {{localize "PF2E.Kingmaker.KingdomBuilder.Aspiration"}}
  90. <select name="aspiration">
  91. {{#select kingdom.aspiration}}
  92. <option value="fame">{{localize "PF2E.Kingmaker.Kingdom.Aspiration.fame"}}</option>
  93. <option value="infamy">{{localize "PF2E.Kingmaker.Kingdom.Aspiration.infamy"}}</option>
  94. {{/select}}
  95. </select>
  96. </label>
  97. <label>
  98. <input type="checkbox" name="build.manual" {{checked kingdom.build.manual}}>
  99. {{localize "PF2E.Kingmaker.KingdomBuilder.ManualToggle"}}
  100. </label>
  101. </div>
  102. </div>
  103. <div class="abilities">
  104. {{#each kingdom.abilities as |ability key|}}
  105. <div class="row-column">
  106. {{#if @root.kingdom.build.manual}}
  107. <input name="abilities.{{key}}.value" value="{{ability.value}}"/>
  108. {{else}}
  109. <div class="value">{{ability.value}}</div>
  110. {{/if}}
  111. <h4>{{localize (lookup ../abilityLabels key)}}</h4>
  112. </div>
  113. {{/each}}
  114. <div class="complete">
  115. <button class="complete" type="button" data-action="complete" {{disabled (not finished)}}>
  116. {{localize "PF2E.Kingmaker.KingdomBuilder.Complete"}}
  117. </button>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </section>
  123. </div>
  124. </form>
  125. {{#*inline "buildElement"}}
  126. <div class="build-element">
  127. <section class="choices">
  128. {{#each choices as |choice slug|}}
  129. <div class="choice {{#if (eq slug ../selected)}}selected{{/if}}" data-slug="{{slug}}">
  130. <img src="{{choice.img}}" />
  131. <label>
  132. {{choice.name}}
  133. {{#if (eq ../active slug)}}
  134. <i class="fa-solid fa-check-circle"></i>
  135. {{/if}}
  136. </label>
  137. </div>
  138. {{/each}}
  139. </section>
  140. <section class="selection">
  141. <div class="text">
  142. <h3>
  143. {{buildEntry.name}}
  144. {{#if @root.options.editable}}
  145. <div class="item-controls">
  146. <a data-action="set" {{disabled (not stale)}}><i class="fas fa-fw fa-save"></i></a>
  147. </div>
  148. {{/if}}
  149. </h3>
  150. <div class="description"><div class="content">{{buildEntry.description}}</div></div>
  151. </div>
  152. <footer>
  153. {{> "systems/pf2e/templates/actors/party/kingdom/partials/build-entry-boosts.hbs"}}
  154. <button class="complete" data-action="save-and-continue" type="button">
  155. {{localize "PF2E.Kingmaker.KingdomBuilder.SaveAndContinue"}}
  156. </button>
  157. </footer>
  158. </section>
  159. </div>
  160. {{/inline}}
  161. {{#*inline "buildRow"}}
  162. <section class="row" data-section="{{section}}">
  163. <div class="row-heading">
  164. {{#if data.remaining}}<div class="remaining extra">{{data.remaining}}</div>{{/if}}
  165. {{#if object}}
  166. <img src="{{object.img}}" title="{{kingdom.charter.name}}" width="32" height="32" loading="lazy"/>
  167. {{/if}}
  168. <div class="label">
  169. <div class="title">{{localize title}}</div>
  170. <div class="description">
  171. {{#if object}}
  172. {{object.name}}
  173. {{else}}
  174. {{localize "PF2E.Kingmaker.KingdomBuilder.NotSelected"}}
  175. {{/if}}
  176. </div>
  177. </div>
  178. </div>
  179. {{#if data.buttons}}
  180. <div class="abilities">
  181. {{#each data.buttons as |state|}}
  182. {{> buttons state=state}}
  183. {{/each}}
  184. </div>
  185. {{else}}
  186. <div class="full-row">{{localize missingText}}</div>
  187. {{/if}}
  188. </section>
  189. {{/inline}}
  190. {{#*inline "buttons"}}
  191. <div class="row-column" data-ability="{{state.ability}}" data-stat="{{state.stat}}">
  192. {{#if flaw}}
  193. {{> boostButton type="flaw" button=state.flaw}}
  194. {{/if}}
  195. {{#if boost}}
  196. {{> boostButton type="boost" button=state.boost}}
  197. {{/if}}
  198. </div>
  199. {{/inline}}
  200. {{#*inline "boostButton"}}
  201. {{#if button.second}}
  202. <div class="flaw-buttons">
  203. {{> boostButtonSingle button=button type=type number="first"}}
  204. {{> boostButtonSingle button=button.second type=type number="second"}}
  205. </div>
  206. {{else}}
  207. {{> boostButtonSingle button=button type=type}}
  208. {{/if}}
  209. {{#*inline "boostButtonSingle"}}
  210. <button type="button" data-action="{{type}}" class="tooltip boost-button {{type}} {{number}}{{#if button.selected}} selected{{/if}}{{#if button.locked}} locked{{/if}}" {{disabled (and button.disabled (not button.selected))}}>
  211. {{#if button.locked}}<i class="fas fa-lock"></i>{{/if}}
  212. {{#if (eq number "second")}}
  213. x2
  214. {{else if (eq type "flaw")}}
  215. {{localize "PF2E.Kingmaker.KingdomBuilder.Flaw"}}
  216. {{else}}
  217. {{localize "PF2E.Kingmaker.KingdomBuilder.Boost"}}
  218. {{/if}}
  219. </button>
  220. {{/inline}}
  221. {{/inline}}