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.

91 lines
5.8 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <div class="tab crafting crafting-pane" data-group="primary" data-tab="crafting">
  2. <div class="crafting-options item-list">
  3. <div class="crafting-option item" data-toggle-property="{{toggle.inputName}}" data-toggle-label="{{localize toggle.label}}">
  4. <label>
  5. <input type="checkbox" name="flags.pf2e.freeCrafting" flag="freeCrafting" {{checked actor.flags.pf2e.freeCrafting}}>
  6. <span>{{localize "PF2E.CraftingTab.ToggleFreeCrafting"}}</span>
  7. </label>
  8. </div>
  9. {{#if crafting.hasQuickAlchemy}}
  10. <div class="crafting-option item" data-toggle-property="{{toggle.inputName}}" data-toggle-label="{{localize toggle.label}}">
  11. <label>
  12. <input type="checkbox" name="flags.pf2e.quickAlchemy" flag="quickAlchemy" {{checked actor.flags.pf2e.quickAlchemy}}>
  13. <span>{{localize "PF2E.CraftingTab.ToggleQuickAlchemy"}}</span>
  14. </label>
  15. </div>
  16. {{/if}}
  17. </div>
  18. <ol class="craftingEntry-list directory-list item-list">
  19. {{> "systems/pf2e/templates/actors/crafting-entry-list.hbs" craftingEntries=crafting.entries}}
  20. <li class="known-formulas item-container" data-container-type="knownFormulas">
  21. <div class="action-header">
  22. <h3 class="item-name hide-container-toggle title">
  23. {{localize "PF2E.FormulaKnownTitle"}}
  24. </h3>
  25. </div>
  26. <ol class="directory-list item-list formula-list">
  27. <!-- Add section for each formula level -->
  28. {{#each crafting.knownFormulas as |section lvl|}}
  29. <li class="formula-level-header formula-header" data-item-type="formulaLevel" data-level="{{lvl}}">
  30. <div class="level-name flexrow">
  31. <h3>{{localize "PF2E.LevelN" level=lvl}}</h3>
  32. </div>
  33. <div class="formula-dc-header">{{localize "PF2E.CraftDCTitle"}}</div>
  34. <div class="formula-cost-header">{{localize "PF2E.SpellCostLabel"}}</div>
  35. <div class="formula-quantity-header">{{localize "PF2E.CraftingTab.CraftQuantityTitle"}}</div>
  36. {{#if @root.options.editable}}
  37. <div class="item-controls">
  38. <a class="item-control inventory-browse" data-tooltip="PF2E.OpenInventoryBrowser" data-level="{{lvl}}"><i class="fa-solid fa-fw fa-search"></i></a>
  39. </div>
  40. {{/if}}
  41. </li>
  42. <!-- Add formula items for each formula level -->
  43. {{#each section as |craftedItem i|}}
  44. <li class="item formula-item" data-formula-lvl="{{lvl}}" data-item-id="{{craftedItem.uuid}}" data-is-formula="true">
  45. <div class="item-name rollable">
  46. <div class="item-image framed">
  47. <img class="item-icon" src="{{craftedItem.img}}" alt="{{craftedItem.name}}">
  48. <i class="fa-solid fa-message"></i>
  49. </div>
  50. <h4>{{craftedItem.name}}</h4>
  51. </div>
  52. <div class="dc">{{craftedItem.dc}}</div>
  53. <div class="cost">{{coinLabel craftedItem.cost}}</div>
  54. <div class="quantity">
  55. <a class="adjust decrease" data-action="decrease-quantity">&ndash;</a>
  56. <input type="number" class="formula-number" data-action="enter-quantity" value="{{#if @root.crafting.noCost}}{{craftedItem.minimumBatchSize}}{{else}}{{craftedItem.batchSize}}{{/if}}" />
  57. <a class="adjust increase" data-action="increase-quantity">+</a>
  58. </div>
  59. {{#if @root.options.editable}}
  60. <div class="item-controls">
  61. {{#if (or @root.crafting.entries.alchemical.entries.length @root.crafting.entries.other.length)}}
  62. <a class="item-control" data-tooltip="PF2E.CraftingTab.QuickAddTitle" data-action="quick-add" data-item-uuid="{{craftedItem.uuid}}"><i class="fa-solid fa-fw fa-plus"></i></a>
  63. {{/if}}
  64. <a class="item-control" data-tooltip="PF2E.CraftItemTitle" data-action="craft-item" data-item-uuid="{{craftedItem.uuid}}"><i class="fa-solid fa-fw fa-hammer"></i></a>
  65. {{#if craftedItem.deletable}}
  66. <a class="item-control formula-delete" data-tooltip="PF2E.DeleteItemTitle"><i class="fa-solid fa-fw fa-trash"></i></a>
  67. {{else}}
  68. <span class="item-control disabled" data-tooltip="PF2E.CraftingTab.UndeletableTooltip"><i class="fa-solid fa-fw fa-trash"></i></span>
  69. {{/if}}
  70. </div>
  71. {{/if}}
  72. </li>
  73. {{/each}}
  74. {{else}}
  75. {{#if @root.options.editable}}
  76. <li class="formula-header empty">
  77. <h4>{{localize "PF2E.FormulaListEmpty"}}</h4>
  78. <a class="blue-button inventory-browse" data-tooltip="PF2E.OpenInventoryBrowser" data-level="{{lvl}}">
  79. <i class="fa-solid fa-fw fa-search"></i>{{localize "PF2E.OpenInventoryBrowser"}}
  80. </a>
  81. </li>
  82. {{/if}}
  83. {{/each}}
  84. </ol>
  85. </li>
  86. </ol>
  87. </div>