mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Added a notification message when KnowTheTide gains a token
This commit is contained in:
parent
c032cb0304
commit
6f0d4a3a61
2 changed files with 4 additions and 3 deletions
|
|
@ -2843,7 +2843,8 @@
|
|||
"documentIsMissing": "The {documentType} is missing from the world.",
|
||||
"tokenActorMissing": "{name} is missing an Actor",
|
||||
"tokenActorsMissing": "[{names}] missing Actors",
|
||||
"domainTouchRequirement": "This domain card requires {nr} {domain} cards in the loadout to be used"
|
||||
"domainTouchRequirement": "This domain card requires {nr} {domain} cards in the loadout to be used",
|
||||
"knowTheTide": "Know The Tide gained a token"
|
||||
},
|
||||
"Sidebar": {
|
||||
"actorDirectory": {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"type": "simple",
|
||||
"value": 0,
|
||||
"max": "@system.levelData.level.current",
|
||||
"icon": "",
|
||||
"icon": "fa-solid fa-water",
|
||||
"recovery": "session",
|
||||
"diceStates": {},
|
||||
"dieFaces": "d4"
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
{
|
||||
"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}]};"
|
||||
"command": "const { max, value } = this.item.system.resource;\nconst maxValue = actor.system.levelData.level.current;\nconst afterUpdate = value+1;\nif (afterUpdate > maxValue) return;\n\nui.notifications.info(game.i18n.localize('DAGGERHEART.UI.Notifications.knowTheTide'));\nreturn { updates: [{\n key: 'resource',\n itemId: this.item.id,\n target: this.item,\n value: 1,\n}]};"
|
||||
}
|
||||
],
|
||||
"cost": [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue