New source found from dndbeyond.com
This commit is contained in:
@@ -88,6 +88,8 @@ export class ItemManager extends PartyManager {
|
||||
this.isPactWeapon = () => ItemAccessors.isPactWeapon(this.item);
|
||||
this.isDedicatedWeapon = () => ItemAccessors.isDedicatedWeapon(this.item);
|
||||
this.isOffhand = () => ItemAccessors.isOffhand(this.item);
|
||||
this.getReplacementWeaponStats = () => ItemAccessors.getReplacementWeaponStats(this.item);
|
||||
this.getAppliedWeaponReplacementStats = () => ItemAccessors.getAppliedWeaponReplacementStats(this.item);
|
||||
this.getBaseArmorName = () => ItemAccessors.getBaseArmorName(this.item);
|
||||
this.getSubType = () => ItemAccessors.getSubType(this.item);
|
||||
this.getQuantity = () => ItemAccessors.getQuantity(this.item);
|
||||
@@ -167,6 +169,8 @@ export class ItemManager extends PartyManager {
|
||||
return ItemNotes.getNoteComponents(this.item, weaponSpellDamageGroups, ruleData, abilityLookup, proficiencyBonus);
|
||||
};
|
||||
this.getMetaText = () => {
|
||||
const appliedWeaponReplacementStats = this.getAppliedWeaponReplacementStats();
|
||||
const ruleData = rulesEngineSelectors.getRuleData(this.state);
|
||||
let metaItems = [];
|
||||
if (this.isLegacy()) {
|
||||
metaItems.push('Legacy');
|
||||
@@ -184,6 +188,11 @@ export class ItemManager extends PartyManager {
|
||||
if (this.isDedicatedWeapon()) {
|
||||
metaItems.push('Dedicated Weapon');
|
||||
}
|
||||
if (appliedWeaponReplacementStats.length > 0) {
|
||||
appliedWeaponReplacementStats.forEach((statId) => {
|
||||
metaItems.push(`Using ${RuleDataUtils.getStatNameById(statId, ruleData, true)}`);
|
||||
});
|
||||
}
|
||||
if (this.isOffhand()) {
|
||||
metaItems.push('Dual Wield');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user