[Fix] 599 - Downtime Activity Actions Fail (#608)

* Updated the healing actions of downtime activiites

* Updated Healing WeaponTrait
This commit is contained in:
WBHarry 2025-08-05 17:15:40 +02:00 committed by GitHub
parent 4827b337d0
commit dea9c0066c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 139 additions and 63 deletions

View file

@ -209,7 +209,12 @@ export const defaultRestOptions = {
img: 'icons/magic/life/cross-worn-green.webp', img: 'icons/magic/life/cross-worn-green.webp',
actionType: 'action', actionType: 'action',
chatDisplay: false, chatDisplay: false,
healing: { target: {
type: 'self'
},
damage: {
parts: [
{
applyTo: healingTypes.hitPoints.id, applyTo: healingTypes.hitPoints.id,
value: { value: {
custom: { custom: {
@ -218,6 +223,8 @@ export const defaultRestOptions = {
} }
} }
} }
]
}
} }
} }
}, },
@ -235,7 +242,12 @@ export const defaultRestOptions = {
img: 'icons/magic/perception/eye-ringed-green.webp', img: 'icons/magic/perception/eye-ringed-green.webp',
actionType: 'action', actionType: 'action',
chatDisplay: false, chatDisplay: false,
healing: { target: {
type: 'self'
},
damage: {
parts: [
{
applyTo: healingTypes.stress.id, applyTo: healingTypes.stress.id,
value: { value: {
custom: { custom: {
@ -244,6 +256,8 @@ export const defaultRestOptions = {
} }
} }
} }
]
}
} }
} }
}, },
@ -261,7 +275,12 @@ export const defaultRestOptions = {
img: 'icons/skills/trades/smithing-anvil-silver-red.webp', img: 'icons/skills/trades/smithing-anvil-silver-red.webp',
actionType: 'action', actionType: 'action',
chatDisplay: false, chatDisplay: false,
healing: { target: {
type: 'self'
},
damage: {
parts: [
{
applyTo: healingTypes.armor.id, applyTo: healingTypes.armor.id,
value: { value: {
custom: { custom: {
@ -270,6 +289,8 @@ export const defaultRestOptions = {
} }
} }
} }
]
}
} }
} }
}, },
@ -297,7 +318,12 @@ export const defaultRestOptions = {
img: 'icons/magic/life/cross-worn-green.webp', img: 'icons/magic/life/cross-worn-green.webp',
actionType: 'action', actionType: 'action',
chatDisplay: false, chatDisplay: false,
healing: { target: {
type: 'self'
},
damage: {
parts: [
{
applyTo: healingTypes.hitPoints.id, applyTo: healingTypes.hitPoints.id,
value: { value: {
custom: { custom: {
@ -306,6 +332,8 @@ export const defaultRestOptions = {
} }
} }
} }
]
}
} }
} }
}, },
@ -323,7 +351,12 @@ export const defaultRestOptions = {
img: 'icons/magic/perception/eye-ringed-green.webp', img: 'icons/magic/perception/eye-ringed-green.webp',
actionType: 'action', actionType: 'action',
chatDisplay: false, chatDisplay: false,
healing: { target: {
type: 'self'
},
damage: {
parts: [
{
applyTo: healingTypes.stress.id, applyTo: healingTypes.stress.id,
value: { value: {
custom: { custom: {
@ -332,6 +365,8 @@ export const defaultRestOptions = {
} }
} }
} }
]
}
} }
} }
}, },
@ -349,7 +384,12 @@ export const defaultRestOptions = {
img: 'icons/skills/trades/smithing-anvil-silver-red.webp', img: 'icons/skills/trades/smithing-anvil-silver-red.webp',
actionType: 'action', actionType: 'action',
chatDisplay: false, chatDisplay: false,
healing: { target: {
type: 'self'
},
damage: {
parts: [
{
applyTo: healingTypes.armor.id, applyTo: healingTypes.armor.id,
value: { value: {
custom: { custom: {
@ -358,6 +398,8 @@ export const defaultRestOptions = {
} }
} }
} }
]
}
} }
} }
}, },

View file

@ -886,15 +886,22 @@ export const weaponFeatures = {
name: 'DAGGERHEART.CONFIG.WeaponFeature.healing.actions.heal.name', name: 'DAGGERHEART.CONFIG.WeaponFeature.healing.actions.heal.name',
description: 'DAGGERHEART.CONFIG.WeaponFeature.healing.actions.heal.description', description: 'DAGGERHEART.CONFIG.WeaponFeature.healing.actions.heal.description',
img: 'icons/magic/life/cross-beam-green.webp', img: 'icons/magic/life/cross-beam-green.webp',
healing: { target: {
type: 'health', type: 'self'
},
damage: {
parts: [
{
applyTo: 'hitPoints',
value: { value: {
custom: { custom: {
enabled: true, enabled: true,
formula: '1' formula: 1
} }
} }
} }
]
}
} }
] ]
}, },

View file

@ -7,29 +7,56 @@
"system": { "system": {
"description": "", "description": "",
"actions": { "actions": {
"dmOSrd6R6EIQyZ0r": { "o18UvqLPWLe1A8XJ": {
"type": "healing", "type": "healing",
"actionType": "action", "actionType": "action",
"chatDisplay": true, "chatDisplay": true,
"name": "Heal", "name": "Heal",
"description": "During downtime, automatically clear a Hit Point.", "description": "During downtime, automatically clear a Hit Point.",
"img": "icons/magic/life/cross-beam-green.webp", "img": "icons/magic/life/cross-beam-green.webp",
"_id": "dmOSrd6R6EIQyZ0r", "target": {
"type": "self",
"amount": null
},
"damage": {
"parts": [
{
"applyTo": "hitPoints",
"value": {
"custom": {
"enabled": true,
"formula": "1"
},
"multiplier": "prof",
"flatMultiplier": 1,
"dice": "d6",
"bonus": null
},
"resultBased": false,
"valueAlt": {
"multiplier": "prof",
"flatMultiplier": 1,
"dice": "d6",
"bonus": null,
"custom": {
"enabled": false
}
},
"base": false,
"type": []
}
],
"includeBase": false
},
"_id": "o18UvqLPWLe1A8XJ",
"effects": [], "effects": [],
"systemPath": "actions", "systemPath": "actions",
"cost": [], "cost": [],
"uses": { "uses": {
"value": null, "value": null,
"max": null, "max": null,
"recovery": null "recovery": null,
}, "consumeOnSuccess": false
"damage": {
"parts": [],
"includeBase": false
},
"target": {
"type": "any",
"amount": null
}, },
"roll": { "roll": {
"type": null, "type": null,
@ -58,7 +85,7 @@
"value": "healing", "value": "healing",
"effectIds": [], "effectIds": [],
"actionIds": [ "actionIds": [
"dmOSrd6R6EIQyZ0r" "o18UvqLPWLe1A8XJ"
] ]
} }
], ],
@ -158,8 +185,8 @@
"systemId": "daggerheart", "systemId": "daggerheart",
"systemVersion": "0.0.1", "systemVersion": "0.0.1",
"createdTime": 1753833663905, "createdTime": 1753833663905,
"modifiedTime": 1753833710722, "modifiedTime": 1754406631151,
"lastModifiedBy": "FecEtPuoQh6MpjQ0" "lastModifiedBy": "MQSznptE5yLT7kj8"
}, },
"_key": "!items!n1oPTk5czTIGTkVj" "_key": "!items!n1oPTk5czTIGTkVj"
} }