Rughalt / D35E

3.5e SRD implementation for Foundry VTT.
https://legaciesofthedragon.com
GNU General Public License v3.0
37 stars 30 forks source link

Linked charges not displayed on features page #900

Open Kolnore opened 2 years ago

Kolnore commented 2 years ago

When Linking two class feature items, the number of charges on the item that uses the pool is not shown on the features page. image

The pool, "Inspiration," only has these features, nothing in the changes image

The formula for the charges is: @classes.factotum.level > 19 ? 10 : @classes.factotum.level > 16 ? 8 : @classes.factotum.level > 13 ? 6 : @classes.factotum.level > 13 ? 7 : @classes.factotum.level > 10 ? 6 : @classes.factotum.level > 7 ? 5 : @classes.factotum.level > 4 ? 4 : @classes.factotum.level > 1 ? 3 : 2

Here is the thing i said in discord about how i got it to work like this: Step 1: have your two items, item A is the reservoir of charges, Item B uses those charges. Step 2: Put the formula for the number of charges into item A, then click "can be linked" this makes the line where you enter the formula go away but the formula stays in the item Step 3: drag Item A in to item B and now it will work, But item B will be at 0 charges the whole time. and every time you activate it the charges of Item A will go down. If you increase the total amount of charges in item B, those charges are untouched when you activate the item.

github-actions[bot] commented 2 years ago

Thanks for opening an issue, traveller! If your issue is related to an actor or an item, sending thing that is broken will help a lot and speed up debugging.

How to send an item? > - If item is owned by a character, drag and drop it to world item list. > - Right click on item in browser item list and click export. > - Attach downloaded item to this ticket. How to send an actor? > - Right click on actor in browser actor list and click export. > - Attach downloaded actor to this ticket.

Kolnore commented 2 years ago

Update: the bug only happens in the features tab, in the summary section under actions it does work as expected image