New source found from dndbeyond.com
This commit is contained in:
@@ -7,7 +7,7 @@ import { SpellAccessors } from '../Spell';
|
||||
import { getAdditionalDamages, getAttackType, getLimitedUse, getLongRange, getNotes, getProperties, getRange, getStealthCheck, getStrengthRequirement, getTags, isAdamantine, isOffhand, isSilvered, getArmorClass, getInfusion, isCustom, } from './accessors';
|
||||
import { WeaponPropertyEnum } from './constants';
|
||||
import { deriveCategoryInfo } from './derivers';
|
||||
import { getApplicableWeaponSpellDamageGroups, hasWeaponProperty, isBaseArmor, isBaseGear, isBaseWeapon, isShield, } from './utils';
|
||||
import { getApplicableWeaponSpellDamageGroups, hasWeaponProperty, isBaseArmor, isBaseGear, isBaseWeapon, isShield, isReplicated, } from './utils';
|
||||
import { validateIsWeaponLike } from './validators';
|
||||
/**
|
||||
*
|
||||
@@ -190,12 +190,16 @@ function getInfusionNoteComponents(item, infusion) {
|
||||
* @param abilityLookup
|
||||
* @param proficiencyBonus
|
||||
*/
|
||||
export function getNoteComponents(item, weaponSpellDamageGroups, ruleData, abilityLookup, proficiencyBonus) {
|
||||
export function getNoteComponents(item, weaponSpellDamageGroups, ruleData, abilityLookup, proficiencyBonus, itemPlan = null) {
|
||||
const notes = [];
|
||||
const infusion = getInfusion(item);
|
||||
if (infusion) {
|
||||
notes.push(...getInfusionNoteComponents(item, infusion));
|
||||
}
|
||||
// If there is an item plan or the item is marked as replicated by PartyResctrictions - add a note
|
||||
if (itemPlan || isReplicated(item)) {
|
||||
notes.push(NoteGenerators.createPlainText('Replicated Item'));
|
||||
}
|
||||
if (isBaseWeapon(item)) {
|
||||
notes.push(...getWeaponNoteComponents(item, weaponSpellDamageGroups, ruleData, abilityLookup, proficiencyBonus));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user