Giter Club home page Giter Club logo

pf2e-heroic-crafting-automation's Introduction

[PF2E] Heroic Crafting - Automation

A companion module for the Heroic Crafting Foundry module, based on the supplement on Pathfinder Infinite of the same name.

Check out the original Pathfinder Infinite product here!

Features

Beginning and Crafting Projects

The module introduces a new interface in the Crafting tab on the Player Character sheets where the player can keep track of their projects.

An image of the Foundry PF2E Character sheet's Crafting tab, with a new entry in the middle, called "Projects". The cursor is hovering over a new "Begin Project" button next to a formula for a rapier.

The formulas "Known Formulas" entry gain a new "Begin Project" button with the icon of a scroll, and a new entry is created called "Projects" for projects in the process of being crafted.

Clicking "Begin Project" will allow the player to set a starting Current Value for the project, and determine how they will pay for it.

An image of a popup window that displays what project the player intends to start, how much they can spend on it at most, with an input field for how much they ARE spending on it, and a "pay method" dropdown menu that asks how the spent amount should be paid.

"Coins only" and "Material Troves only" use only the specified method to craft. "Coins, then Troves" will attempt to pay for it with coins first, then takes value away from troves if its not enough, and "Troves, then coins" is the reverse of that.

An image of a popup window that asks the player how much they are spending to craft a project, how long they are working on it, if they are taking any overtime penalties, and how they intend to pay the costs.

Crafting a project, done by clicking the hammer icon at the end of a project's row, uses a similar interface. The player has the option to input a crafting duration (the skill check's trait can change from exploration to downtime depending on the duration set), and an overtime penalty.

An image of a chat message of a failed crafting check. The message has a button to progress the project's completion by 5 sp.

When the player rolls the check using the popup above, the result is output into a chat message, with a button that can be used to automatically progress the project's status.

If the project's Current Value is ever above the Price of the project, the project is deleted and the item is created. If it ever dips below 0 gp of Current Value, the project is also removed.

Foraging

An image of a chat message of a successful foraging check. The message instructs the user to refill their material troves by 20 gp.

The module comes with a foraging macro that calculates the results for you -- though the DC cannot truly be secret at the moment because of Foundry limitations.

Heroic Crafting module support

A GIF of the crafting popup, now with multiple extra options, all named after various Heroic Crafting feats.

If you have the Heroic Crafting module, this module will extend support wherever possible if you have the appropriate feats.

Custom Rule Elements

An image of the Rules tab on a feat, where there is a new "Heroic Crafting - Crafting Option" rule shown, with the rule element dropdown menu showing off the additional Heroic Crafting rule elements.

Beyond the feats shown above, you can make your own feats that take effect over the Craft A Project window using the module's own custom Rule Elements.

How to Install

Standard Foundry module installation

  1. Fire up your Foundry client, and navigate to "Add-on Modules", then search up the module's name, and click "Install" beside it.
  2. (Optional, but heavily suggested) Do the same with the Heroic Crafting module as well.
  3. Enjoy!

Using the manifest file directly

  1. Fire up your Foundry client, and navigate to "Add-on Modules", then click "Install Module".
  2. Copy the manifest link (this: https://raw.githubusercontent.com/Cerapter/pf2e-heroic-crafting-automation/master/module.json) into the "Manifest URL:" part, then install it.
  3. Enjoy!

pf2e-heroic-crafting-automation's People

Contributors

cerapter avatar rikshy avatar chasarooniz avatar

Stargazers

 avatar Ömer Cora avatar

Watchers

 avatar

pf2e-heroic-crafting-automation's Issues

Multiple People Crafting Support [Feature Request]

At the current moment, this part of Heroic Crafting doesn't seem to be supported. I'm not sure how exactly it would be implemented, but simply allowing the ability to manually add value to the project without requiring a check would be a very nice soft fix!

I understand that this would likely be difficult to automate exactly, but thought it important to mention

Feature Request - Reverse Engineer an Item

As with the base rules, Heroic Crafting includes the ability to reverse engineer an item.

It would be nice if a reverse engineering project could be supported which asks for an item at the start, progresses through the crafting rolls, and adds a formula plus a trove at the end.

_validateModel needs to be static method

Backwards-compatible support will be removed in Version 13
    at Object.logCompatibilityWarning (commons.js:2059:19)
    at AddCraftProgressRuleElement.validateJoint (commons.js:7222:23)
    at AddCraftProgressRuleElement.validate (commons.js:7173:28)
    at AddCraftProgressRuleElement.validate (pf2e.mjs:1354:139900)
    at new DataModel (commons.js:6918:12)
    at new RuleElementPF2e (pf2e.mjs:1354:137404)
    at new AddCraftProgressRuleElement (add-craft-progress.js:7:9)
    at pf2e.mjs:1605:141470
    at RuleElements.fromOwnedItem (pf2e.mjs:1605:141712)
    at FeatPF2e.prepareRuleElements (pf2e.mjs:1621:326866)

This console error (or possibly some others) seem to break the REs.

Forage Crafting Resources macro is not working.

Hello,

I am experiencing an issue with the "Forage Crafting Resources" macro in Foundry VTT. Specifically, the macro is not properly calculating rolls and is also failing to display the "Refill Material Troves" button alongside the roll results.

Environment Details:
Foundry Version: 309
Pathfinder 2e System Version: 5.6.1

Steps to Reproduce:
Create a new world with only the Heroic Crafting and Heroic Crafting Automation module enabled.

Run the "Forage Crafting Resources" macro.

Here is a picture of my results.

hcForage

Feature Request: Herbalist Dedication Support

https://2e.aonprd.com/Feats.aspx?ID=1982
The Herbalist Dedication allows you to use Nature instead of Crafting for making Herbal Healing Items. It's limited to "herbal" items, which are alchemical items with the healing trait and a couple others.

Currently, the module doesn't support Herbalist and doesn't let you do Nature instead of crafting, this has to be tracked manually

Feature Request - Craft Formula for an Item

As part of the inventor as well as part of reverse engineering, there is an ability to craft formulas.

Is there a way to add a button on the crafting tab to allow a character to begin a project to craft a formula, as well as being able to Craft a Project to complete it?

Coins not usable for Crafting

As the title suggests, it seems only the Material Trove works, and coins don't work at all. In the example, I put up 1 gp in to start the project. There is no material trove, and the setting is on coins only, and it says that the actor can't afford the project.
image
image
image

[Request] Set custom week lengths i.e. 10-day week

I noticed that in constants.js you list out the spending limits for weeks and days by multiplying the hours section. For worlds with 10-day weeks it would be a 30 in place of a 20. Would it be possible to have a config option to change the number of days in a week?

[Request] Set Default on Resource Use

I think it would be helpful to have a player-facing setting to allow the player to set which of the four options for resource use would be the default -- this way, someone who relies heavily on a material trove can have one of the options that favor it be the default.

Crafting in Batches v11

When you start a project in v11, it only calculates 1 item rather than the whole batch when inputting the starting value.
image
image

My current soft fix has been to start the project with nothing and manually adjust the number in the batch, which isn't ideal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.