[Fix] Fixed Resources (#485)

* Fixed DiceValues placement in InventoryItemV2. Fixed parsing of ITEM.@ paths

* Restored simple view
This commit is contained in:
WBHarry 2025-07-31 03:24:26 +02:00 committed by GitHub
parent 7bbbdce739
commit 23b8363dd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 18 deletions

View file

@ -307,8 +307,8 @@ export function updateLinkedItemApps(options, sheet) {
export const itemAbleRollParse = (value, actor, item) => {
if (!value) return value;
const isItemTarget = value.toLowerCase().replace('item.@', '@');
const slicedValue = isItemTarget ? value.slice(5) : value;
const isItemTarget = value.toLowerCase().includes('item.@');
const slicedValue = isItemTarget ? value.replaceAll(/item\.@/gi, '@') : value;
try {
return Roll.replaceFormulaData(slicedValue, isItemTarget ? item : actor);
} catch (_) {