whelan / fvtt-merchant-sheet-npc

FVTT - Merchant Sheet NPC 5E
MIT License
12 stars 13 forks source link

Can not generate results from roll table #156

Open Axblade opened 1 year ago

Axblade commented 1 year ago

When have roll table within a roll table that has items attached it is unable to generate results from it.

To Reproduce Steps to reproduce the behavior:

  1. Create 3 roll tables
  2. add items to two of the roll tables
  3. add the two roll tables with items to other roll table
  4. select actor to roll the roll table without items
  5. ERROR

Expected behavior Roll table will pull the results from both roll tables this is important as it can handle rarity's

Screenshots ![Uploading Capture.1.PNG…]() Capture 2

Desktop (please complete the following information):

Additional context This used to work fine few versions back.

AndrewRP8023 commented 1 year ago

As of May 1st, this still doesn't work. I'm not even using nested Roll tables. A single roll table with items on it, and it won't generate an inventory. Version 2.9.1.

Edit: This error appears when attempting to use a RollTable.

Error: You are accessing the TableResult#data object which is no longer used. Since V10 the Document class and its contained DataModel are merged into a combined data structure. You should now reference keys which were previously contained within the data object directly. at logCompatibilityWarning (commons.js:1692:19) at TableResult._logV10CompatibilityWarning (commons.js:6642:14) at get data [as data] (commons.js:6542:24) at MerchantSheet.generateItems (bundle.js:733:49)