mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 07:23:37 +02:00
Corrected the SRD to use base effects again
This commit is contained in:
parent
4113f6c562
commit
8a728e6c27
51 changed files with 316 additions and 174 deletions
|
|
@ -493,18 +493,14 @@ export const weaponFeatures = {
|
|||
key: 'system.evasion',
|
||||
mode: 2,
|
||||
value: '-1'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'armor',
|
||||
name: 'DAGGERHEART.CONFIG.WeaponFeature.barrier.effects.barrier.name',
|
||||
description: 'DAGGERHEART.CONFIG.WeaponFeature.barrier.effects.barrier.description',
|
||||
img: 'icons/skills/melee/shield-block-bash-blue.webp',
|
||||
changes: [
|
||||
},
|
||||
{
|
||||
key: 'Armor',
|
||||
type: 'armor',
|
||||
max: 'ITEM.@system.tier + 1'
|
||||
typeData: {
|
||||
type: 'armor',
|
||||
max: 'ITEM.@system.tier + 1'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -812,24 +808,20 @@ export const weaponFeatures = {
|
|||
}
|
||||
},
|
||||
{
|
||||
type: 'armor',
|
||||
name: 'DAGGERHEART.CONFIG.WeaponFeature.doubleDuty.effects.doubleDuty.name',
|
||||
description: 'DAGGERHEART.CONFIG.WeaponFeature.doubleDuty.effects.doubleDuty.description',
|
||||
img: 'icons/skills/melee/sword-shield-stylized-white.webp',
|
||||
changes: [
|
||||
{
|
||||
key: 'Armor',
|
||||
type: 'armor',
|
||||
max: 1
|
||||
value: 0,
|
||||
typeData: {
|
||||
type: 'armor',
|
||||
max: 1
|
||||
}
|
||||
}
|
||||
],
|
||||
system: {
|
||||
rangeDependence: {
|
||||
enabled: true,
|
||||
range: 'melee',
|
||||
target: 'hostile',
|
||||
type: 'withinRange'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -1208,14 +1200,18 @@ export const weaponFeatures = {
|
|||
description: 'DAGGERHEART.CONFIG.WeaponFeature.protective.description',
|
||||
effects: [
|
||||
{
|
||||
type: 'armor',
|
||||
name: 'DAGGERHEART.CONFIG.WeaponFeature.protective.effects.protective.name',
|
||||
description: 'DAGGERHEART.CONFIG.WeaponFeature.protective.effects.protective.description',
|
||||
img: 'icons/skills/melee/shield-block-gray-orange.webp',
|
||||
changes: [
|
||||
{
|
||||
key: 'Armor',
|
||||
type: 'armor',
|
||||
max: 'ITEM.@system.tier'
|
||||
value: 0,
|
||||
typeData: {
|
||||
type: 'armor',
|
||||
max: 'ITEM.@system.tier'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@ export default class Armor extends foundry.abstract.DataModel {
|
|||
label: 'Armor',
|
||||
defaultPriortiy: 20,
|
||||
handler: (actor, change, _options, _field, replacementData) => {
|
||||
const parsedMax = itemAbleRollParse(change.typeData.max, actor, change.effect.parent);
|
||||
|
||||
game.system.api.documents.DhActiveEffect.applyChange(
|
||||
actor,
|
||||
{
|
||||
|
|
@ -42,7 +44,7 @@ export default class Armor extends foundry.abstract.DataModel {
|
|||
...change,
|
||||
key: 'system.armorScore.max',
|
||||
type: CONFIG.DH.GENERAL.activeEffectModes.add.id,
|
||||
value: change.typeData.max
|
||||
value: parsedMax
|
||||
},
|
||||
replacementData
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue