mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
Added a max to KnowTheTide. Added a onFear trigger to increase the resource
This commit is contained in:
parent
3b27803e24
commit
98fe9a01d7
1 changed files with 37 additions and 3 deletions
|
|
@ -9,13 +9,47 @@
|
|||
"resource": {
|
||||
"type": "simple",
|
||||
"value": 0,
|
||||
"max": "",
|
||||
"max": "@system.levelData.level.current",
|
||||
"icon": "",
|
||||
"recovery": null,
|
||||
"recovery": "session",
|
||||
"diceStates": {},
|
||||
"dieFaces": "d4"
|
||||
},
|
||||
"actions": {},
|
||||
"actions": {
|
||||
"tFlus34KotJjHfTe": {
|
||||
"type": "effect",
|
||||
"_id": "tFlus34KotJjHfTe",
|
||||
"systemPath": "actions",
|
||||
"baseAction": false,
|
||||
"description": "",
|
||||
"chatDisplay": true,
|
||||
"originItem": {
|
||||
"type": "itemCollection"
|
||||
},
|
||||
"actionType": "action",
|
||||
"triggers": [
|
||||
{
|
||||
"trigger": "fearRoll",
|
||||
"triggeringActorType": "self",
|
||||
"command": "const { max, value } = this.item.system.resource;\nconst maxValue = actor.system.levelData.level.current;\nconst afterUpdate = value+1;\nif (afterUpdate > maxValue) return;\n\nreturn { updates: [{\n key: 'resource',\n itemId: this.item.id,\n target: this.item,\n value: 1,\n}]};"
|
||||
}
|
||||
],
|
||||
"cost": [],
|
||||
"uses": {
|
||||
"value": null,
|
||||
"max": "",
|
||||
"recovery": null,
|
||||
"consumeOnSuccess": false
|
||||
},
|
||||
"effects": [],
|
||||
"target": {
|
||||
"type": "any",
|
||||
"amount": null
|
||||
},
|
||||
"name": "Know The Tide",
|
||||
"range": ""
|
||||
}
|
||||
},
|
||||
"originItemType": null,
|
||||
"subType": null,
|
||||
"originId": null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue