A fix for https://github.com/SobranDM/foundryvtt-wwn/issues/64. The use of this.system as data.actor was not affecting the other rolls as they did not use data.actor at all, but also fix them so if they use actor in the future it will be the expected object.
Loading of the table also was not working, as the type of table is prefixed with Compendium. (so Compendium.wwn.instinct, while the packs collection has wwn.instinct. Changed the code so it also works if you use a RollTable in the collection, instead of straight from the compendium pack.
A fix for https://github.com/SobranDM/foundryvtt-wwn/issues/64. The use of
this.system
asdata.actor
was not affecting the other rolls as they did not usedata.actor
at all, but also fix them so if they useactor
in the future it will be the expected object.Loading of the table also was not working, as the type of table is prefixed with
Compendium.
(soCompendium.wwn.instinct
, while thepacks
collection haswwn.instinct
. Changed the code so it also works if you use aRollTable
in the collection, instead of straight from the compendium pack.