OhhLoz / Harvester

A QoL FoundryVTT module to improve the harvesting and looting experience.
GNU General Public License v3.0
2 stars 2 forks source link

Add integration with the module "Better Rolltables" Harvest Type Rolltable #18

Closed p4535992 closed 11 months ago

p4535992 commented 11 months ago

I finalized my new rolltable integration for harvesting with the "Better Rolltable" module, the people I had prepared it for liked the idea because it allows them to customize and filter harvesting results in a clear and precise and above all random way.

They had asked me to make it from the start that was compatible with your module so I outsourced it to a single api call that I show below:

const itemsData = await game.modules.get("better-rolltables").api.retrieveItemsDataFromRollTableResultSpecialHarvester({
      table: <Rolltable retrieve on a compendium or on the directory>, 
      options: {
        rollMode: "gmroll",
        dc: <The dc value to pass e.g. 2>,
        skill: <The skill denomination e.g. arc,nat>
      }
    });

The integration seems to me to have come out well, but let me know what you think

OhhLoz commented 11 months ago

Looks good thank you!