fantasycalendar / FoundryVTT-ItemPiles

Other
33 stars 52 forks source link

Shadowdark system #541

Closed mrstarbuck007 closed 4 months ago

mrstarbuck007 commented 4 months ago

Added support for the Shadowdark system.

Haxxer commented 4 months ago

According to the system template.json, there's a whole lot more types you might want to add: https://github.com/Muttley/foundryvtt-shadowdark/blob/develop/system/template.json#L145C1-L166C12

mrstarbuck007 commented 4 months ago

According to the system template.json, there's a whole lot more types you might want to add: https://github.com/Muttley/foundryvtt-shadowdark/blob/develop/system/template.json#L145C1-L166C12

Thanks! For some reason I couldn't find where those were defined.

Haxxer commented 4 months ago

Based on discussions I've seen in the Foundry discord server on this system, it has three currencies, and system.cost is an object with the three currencies? Item Piles expects to be a single absolute number, as it cannot calculate an object's value.

The system implementation of D&D5e handled this with a custom handler:

https://github.com/fantasycalendar/FoundryVTT-ItemPiles/blob/master/src/systems/dnd5e.js#L48