Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - [Starfinder] - Adding Item Levels as Merchant Column not working #676

Open
TheTortler opened this issue Oct 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TheTortler
Copy link

I confirm the following:

  • [ tick ] I am on the latest version of Item Piles
  • [ tick ] I have tried to clear my cache (Ctrl / Cmd + F5)
  • [ tick ] I have checked the console for errors (F12 to open, Console tab)
  • [ tick ] I have tried to reset Item Piles' system settings
  • [ tick ] I have reproduced this bug with only item piles & its dependency modules enabled

Describe the bug
I have tried to add an items level column to my merchant, from my understanding of the foundry pathways I've done it correctly but it simply produces a blank entry for every item's level.

image

Expected behavior
The level of each item to be visible and sortable

Screenshots
image

Setup

  • Foundry Version: [e.g. 9.238]
  • System Version: [e.g. DND5e 1.5.7]
  • Item Piles Version: [e.g. 1.0.0]
  • Browser & version [e.g. Google Chrome 98.0.4758.82]

Active modules

  • Item Piles
  • libwrapper
  • socketlib
  • others that are not having any impact
@TheTortler TheTortler added the bug Something isn't working label Oct 29, 2024
@Haxxer
Copy link
Collaborator

Haxxer commented Oct 29, 2024

it's not @item.level, it is system.level most likely.

It is the literal property path, not some @ or somesuch. If you were to navigate into the data of the item, each string between full stops represent the data you are traversing;

{
  name: "Test item",
  type: "weapon",
  system: {
    level: {
      value: 2
    }
  }
}

In order to properly get the item level, you need to do system.level.value in the above example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants