[Feature] Armor/Weapon Compendiums (#459)

* Fixed localization

* .

* Added all Secondary Weapons

* Added all armors

* Added Tier1 weapons

* Tier2 Physical

* Tier 2 magical

* Tier 3 Physical

* Tier 3 Magical

* Tier 4 Physical

* Tier 4 Magical

* Added wheelchairs
This commit is contained in:
WBHarry 2025-07-30 15:33:00 +02:00 committed by GitHub
parent 8e516df7cb
commit 2c4d3bd4a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
277 changed files with 34221 additions and 431 deletions

View file

@ -41,7 +41,7 @@ export default class RegisterHandlebarsHelpers {
}
static formulaValue(formula, item) {
if(isNaN(formula)) {
if (isNaN(formula)) {
const data = item.getRollData.bind(item)(),
roll = new Roll(Roll.replaceFormulaData(formula, data)).evaluateSync();
formula = roll.total;

View file

@ -307,7 +307,7 @@ export function updateLinkedItemApps(options, sheet) {
export const itemAbleRollParse = (value, actor, item) => {
if (!value) return value;
const isItemTarget = value.toLowerCase().startsWith('item.');
const isItemTarget = value.toLowerCase().replace('item.@', '@');
const slicedValue = isItemTarget ? value.slice(5) : value;
try {
return Roll.replaceFormulaData(slicedValue, isItemTarget ? item : actor);