collected updates

This commit is contained in:
Mike Bloy 2024-04-21 13:43:02 -05:00
parent b5f0794866
commit df607d4d66
4 changed files with 1056 additions and 507 deletions

View File

@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.4.3] 2024-04-21
### Added
- Added token varient art suggested effect mappings
### Changed
- Added elevation component to distance calculations for gang up
- Added check for incapacitated or defeated tokens to gang up check
- Minor cosmetic change to 'Draw from Action Deck' macro
## [2.4.2] 2024-02-25 ## [2.4.2] 2024-02-25

1538
config/token-variants-global-mappings.json Executable file → Normal file
View File

@ -1,13 +1,26 @@
{ {
"globalMappings": [ "globalMappings": [
{ {
"id": "02qnAqdH",
"label": "Arcane Protection",
"expression": "Arcane Protection (-2) || Arcane Protection (major, -4) || Greater Arcane Protection (-4) || Greater Arcane Protection (major, -6)",
"codeExp": "",
"imgName": "", "imgName": "",
"imgSrc": "", "imgSrc": "",
"priority": 50, "priority": 50,
"config": {}, "config": {},
"overlay": true, "overlay": true,
"alwaysOn": false, "alwaysOn": false,
"disabled": false,
"overlayConfig": { "overlayConfig": {
"id": "02qnAqdH",
"html": {
"template": "",
"style": "",
"listeners": ""
},
"parentID": "",
"ui": false,
"underlay": false, "underlay": false,
"bottom": false, "bottom": false,
"top": false, "top": false,
@ -16,527 +29,353 @@
"animation": { "animation": {
"relative": false, "relative": false,
"rotate": false, "rotate": false,
"duration": 30000, "duration": "5000",
"clockwise": true "clockwise": true
}, },
"linkMirror": true, "linkMirror": true,
"linkScale": true, "linkScale": true,
"linkDimensionsX": false,
"linkDimensionsY": false,
"linkOpacity": false, "linkOpacity": false,
"linkStageScale": false,
"loop": true, "loop": true,
"playOnce": false, "playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Generic/Item/GlintMany01_01_Regular_Yellow_200x200.webm", "img": [
"alpha": 1, {
"tint": "", "src": "modules/JB2A_DnD5e/Library/Generic/Template/Circle/OutPulse/OutPulse_02_Regular_BlueWhite_Burst_600x600.webm",
"offsetX": 0, "linked": false
"offsetY": 0.38,
"scaleX": 0.4,
"scaleY": 0.4,
"angle": 0,
"filter": "DropShadowFilter",
"filterOptions": {
"rotation": 45,
"distance": 7,
"color": 0,
"alpha": 0.84,
"shadowOnly": false,
"blur": 2,
"quality": 0
},
"alwaysVisible": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnControl": false,
"text": {
"text": "Shaken",
"fontFamily": "Signika",
"fontSize": 36,
"letterSpacing": 0,
"fill": "#FFFFFF",
"dropShadow": "true",
"strokeThickness": 1,
"stroke": "#111111",
"curve": {
"radius": 0,
"invert": null
} }
}, ],
"id": "mwFtNKpD" "repeating": false,
}, "alpha": "1",
"targetActors": null,
"label": "Shaken",
"expression": "Shaken",
"id": "mwFtNKpD"
},
{
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"overlayConfig": {
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": true,
"duration": 30000,
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkOpacity": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Generic/Particles/ParticlesInward02_04_Regular_GreenYellow_400x400.webm",
"alpha": 1,
"tint": "", "tint": "",
"offsetX": 0, "interpolateColor": {
"offsetY": 0, "color2": "",
"scaleX": 1.5, "prc": ""
"scaleY": 1.5,
"angle": 0,
"filter": "DropShadowFilter",
"filterOptions": {
"rotation": 45,
"distance": 7,
"color": 0,
"alpha": 0.84,
"shadowOnly": false,
"blur": 2,
"quality": 0
}, },
"alwaysVisible": false, "width": "",
"limitedUsers": [], "height": "",
"limitOnHover": false, "scaleX": "1",
"limitOnControl": false, "scaleY": "1",
"text": { "angle": "0",
"text": "", "pOffsetX": "",
"fontFamily": "Signika", "pOffsetY": "",
"fontSize": 36, "offsetX": "0",
"letterSpacing": 0, "offsetY": "0",
"fill": "#FFFFFF", "anchor": {
"dropShadow": "true", "x": 0.5,
"strokeThickness": 1, "y": 0.5
"stroke": "#111111",
"curve": {
"radius": 0,
"invert": null
}
}, },
"id": "toTYr3DQ"
},
"targetActors": null,
"label": "Distracted",
"expression": "Distracted",
"id": "toTYr3DQ"
},
{
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"overlayConfig": {
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": 5200,
"clockwise": false
},
"linkMirror": true,
"linkScale": true,
"linkOpacity": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Generic/Marker/MarkerShieldCracked_02_Regular_Purple_400x400.webm",
"alpha": 1,
"tint": "",
"offsetX": 0,
"offsetY": 0,
"scaleX": 1.5,
"scaleY": 1.5,
"angle": 0,
"filter": "OutlineFilter",
"filterOptions": {
"thickness": 1,
"color": 0,
"quality": 0.1
},
"alwaysVisible": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnControl": false,
"text": {
"text": "",
"fontFamily": "Signika",
"fontSize": 36,
"letterSpacing": 0,
"fill": "#FFFFFF",
"dropShadow": "true",
"strokeThickness": 1,
"stroke": "#111111",
"curve": {
"radius": 0,
"invert": null
}
},
"id": "J4GrRaxL"
},
"targetActors": null,
"label": "Vulnerable",
"expression": "Vulnerable",
"id": "J4GrRaxL"
},
{
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"overlayConfig": {
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": 5000,
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkOpacity": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Generic/UI/IconStun_01_Regular_Purple_200x200.webm",
"alpha": 1,
"tint": "",
"offsetX": 0,
"offsetY": 0,
"scaleX": 0.77,
"scaleY": 0.77,
"angle": 0,
"filter": "OutlineFilter",
"filterOptions": {
"thickness": 1,
"color": 0,
"quality": 0.1
},
"alwaysVisible": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnControl": false,
"text": {
"text": "",
"fontFamily": "Signika",
"fontSize": 36,
"letterSpacing": 0,
"fill": "#FFFFFF",
"dropShadow": "true",
"strokeThickness": 1,
"stroke": "#111111",
"curve": {
"radius": 0,
"invert": null
}
},
"id": "nOfPMsQp"
},
"targetActors": null,
"label": "Stunned",
"expression": "Stunned",
"id": "nOfPMsQp"
},
{
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"overlayConfig": {
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": 5000,
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkOpacity": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/1st_Level/Entangle/Entangle_01_Green_400x400.webm",
"alpha": 1,
"tint": "",
"offsetX": 0,
"offsetY": 0,
"scaleX": 1,
"scaleY": 1,
"angle": 0,
"filter": "DropShadowFilter",
"filterOptions": {
"rotation": 45,
"distance": 2,
"color": 2367281,
"alpha": 0.84,
"shadowOnly": false,
"blur": 2,
"quality": 0
},
"alwaysVisible": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnControl": false,
"text": {
"text": "",
"fontFamily": "Signika",
"fontSize": 36,
"letterSpacing": 0,
"fill": "#FFFFFF",
"dropShadow": "true",
"strokeThickness": 1,
"stroke": "#111111",
"curve": {
"radius": 0,
"invert": null
}
},
"id": "rrdhKai4"
},
"targetActors": null,
"label": "Entangled",
"expression": "Entangled",
"id": "rrdhKai4"
},
{
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"overlayConfig": {
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": 5000,
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkOpacity": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Generic/Marker/MarkerChainStandard01_01_Regular_Red_Loop_400x400.webm",
"alpha": 1,
"tint": "",
"offsetX": 0,
"offsetY": 0,
"scaleX": 1.75,
"scaleY": 1.75,
"angle": 0,
"filter": "DropShadowFilter",
"filterOptions": {
"rotation": 45,
"distance": 2,
"color": 2367281,
"alpha": 0.84,
"shadowOnly": false,
"blur": 2,
"quality": 0
},
"alwaysVisible": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnControl": false,
"text": {
"text": "",
"fontFamily": "Signika",
"fontSize": 36,
"letterSpacing": 0,
"fill": "#FFFFFF",
"dropShadow": "true",
"strokeThickness": 1,
"stroke": "#111111",
"curve": {
"radius": 0,
"invert": null
}
},
"id": "5RYi2X9W"
},
"targetActors": null,
"label": "Bound",
"expression": "Bound",
"id": "5RYi2X9W"
},
{
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {
"tv_script": {
"onApply": "",
"onRemove": "",
"tmfxPreset": "dropshadow"
}
},
"overlay": false,
"alwaysOn": false,
"overlayConfig": {
"id": "KtequnXd"
},
"targetActors": null,
"label": "Flying",
"expression": "Flying",
"id": "KtequnXd"
},
{
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {
"tv_script": {
"onApply": "",
"onRemove": "",
"tmfxPreset": "glow"
}
},
"overlay": false,
"alwaysOn": false,
"overlayConfig": {
"id": "k4boMPSb"
},
"targetActors": null,
"label": "Conviction",
"expression": "Conviction",
"id": "k4boMPSb"
},
{
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {
"light": {
"dim": 0.25,
"bright": 0,
"color": "#1c71d8",
"alpha": 0.4,
"animation": {
"type": "sunburst",
"speed": 3,
"intensity": 1
}
}
},
"overlay": true,
"alwaysOn": false,
"overlayConfig": {
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": true,
"duration": 5000,
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkOpacity": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Cantrip/Dancing_Lights/DancingLights_01_Yellow_200x200.webm",
"alpha": 1,
"tint": "",
"offsetX": 0,
"offsetY": 0.52,
"scaleX": 0.41,
"scaleY": 0.41,
"angle": 0,
"filter": "NONE", "filter": "NONE",
"alwaysVisible": false, "alwaysVisible": false,
"limitedToOwner": false,
"limitedUsers": [], "limitedUsers": [],
"limitOnHover": false, "limitOnHover": false,
"limitOnHighlight": false,
"limitOnControl": false, "limitOnControl": false,
"limitOnHUD": false,
"limitOnTarget": false,
"limitOnAnyTarget": false,
"limitOnEffect": "",
"limitOnProperty": "",
"text": { "text": {
"text": "", "text": "",
"repeating": false,
"fontFamily": "Signika", "fontFamily": "Signika",
"fontSize": 36, "fill": "#ffffff",
"letterSpacing": 0, "interpolateColor": {
"fill": "#FFFFFF", "color2": "",
"prc": ""
},
"fontSize": "36",
"align": "center",
"letterSpacing": "0",
"dropShadow": "true", "dropShadow": "true",
"strokeThickness": 1, "strokeThickness": "1",
"stroke": "#111111", "stroke": "#111111",
"wordWrap": false,
"wordWrapWidth": "200",
"breakWords": false,
"maxHeight": "0",
"curve": { "curve": {
"radius": 0, "angle": "0",
"invert": null "radius": "0",
"invert": false
} }
}, },
"id": "eO68BGDl" "effect": "",
"imgLinked": false,
"interactivity": [],
"label": "Arcane Protection"
}, },
"targetActors": null, "group": "Default",
"label": "Glow", "i": 0
"expression": "Glow",
"id": "eO68BGDl"
},
{
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {
"texture": {
"tint": "#c0bfbc"
},
"tv_script": {
"onApply": "",
"onRemove": "",
"tmfxPreset": "smoke"
}
},
"overlay": false,
"alwaysOn": false,
"overlayConfig": {
"id": "BP0Xx8wD"
},
"targetActors": null,
"label": "Shroud",
"expression": "Shroud",
"id": "BP0Xx8wD"
}, },
{ {
"id": "rrdhKai4",
"label": "Bound or Entangled",
"expression": "Bound||Entangled",
"codeExp": "",
"imgName": "", "imgName": "",
"imgSrc": "", "imgSrc": "",
"priority": 50, "priority": 50,
"config": {}, "config": {},
"overlay": true, "overlay": true,
"alwaysOn": false, "alwaysOn": false,
"disabled": false,
"overlayConfig": {
"id": "rrdhKai4",
"html": {
"template": "",
"style": "",
"listeners": ""
},
"parentID": "",
"ui": false,
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": "5000",
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkDimensionsX": false,
"linkDimensionsY": false,
"linkOpacity": false,
"linkStageScale": false,
"loop": true,
"playOnce": false,
"img": [
{
"src": "modules/JB2A_DnD5e/Library/1st_Level/Entangle/Entangle_01_Green_400x400.webm",
"linked": false
}
],
"imgLinked": false,
"repeating": false,
"alpha": "0.75",
"tint": "",
"interpolateColor": {
"color2": "",
"prc": ""
},
"width": "",
"height": "",
"scaleX": "1",
"scaleY": "1",
"angle": "0",
"pOffsetX": "",
"pOffsetY": "",
"offsetX": "0",
"offsetY": "0",
"anchor": {
"x": 0.5,
"y": 0.5
},
"filter": "NONE",
"alwaysVisible": false,
"limitedToOwner": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnHighlight": false,
"limitOnControl": false,
"limitOnHUD": false,
"limitOnTarget": false,
"limitOnAnyTarget": false,
"limitOnEffect": "",
"limitOnProperty": "",
"text": {
"text": "",
"repeating": false,
"fontFamily": "Signika",
"fill": "#FFFFFF",
"interpolateColor": {
"color2": "",
"prc": ""
},
"fontSize": "36",
"align": "center",
"letterSpacing": "0",
"dropShadow": "true",
"strokeThickness": "1",
"stroke": "#111111",
"wordWrap": false,
"wordWrapWidth": "200",
"breakWords": false,
"maxHeight": "0",
"curve": {
"angle": "0",
"radius": "0",
"invert": false
}
},
"shapes": [
{
"shape": {
"type": "rectangle",
"x": "0",
"y": "0",
"width": "100",
"height": "100",
"radius": "0"
},
"label": "",
"line": {
"width": "1",
"color": "#000000",
"alpha": "1"
},
"fill": {
"color": "#ffffff",
"alpha": "1",
"interpolateColor": {
"color2": "",
"prc": ""
}
},
"repeating": false
}
],
"effect": "",
"interactivity": [],
"label": "Bound or Entangled"
},
"group": "Default",
"i": 1
},
{
"id": "5EAavaok",
"label": "Conviction",
"expression": "actor.system.details.conviction.active=\"true\"",
"codeExp": "",
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"disabled": false,
"overlayConfig": {
"id": "5EAavaok",
"html": {
"template": "",
"style": "",
"listeners": ""
},
"parentID": "",
"ui": false,
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": "5000",
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkDimensionsX": false,
"linkDimensionsY": false,
"linkOpacity": true,
"linkStageScale": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/1st_Level/Bless/Bless_01_Regular_Yellow_Loop_400x400.webm",
"repeating": false,
"alpha": "1",
"tint": "",
"interpolateColor": {
"color2": "",
"prc": ""
},
"width": "",
"height": "",
"scaleX": "1.51",
"scaleY": "1.51",
"angle": "1",
"pOffsetX": "",
"pOffsetY": "",
"offsetX": "0",
"offsetY": "0",
"anchor": {
"x": 0.5,
"y": 0.5
},
"filter": "DropShadowFilter",
"filterOptions": {
"rotation": 45,
"distance": 0,
"color": "#000000",
"alpha": 0.86,
"shadowOnly": false,
"blur": 2.3,
"quality": 0
},
"alwaysVisible": false,
"limitedToOwner": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnHighlight": false,
"limitOnControl": false,
"limitOnHUD": false,
"limitOnTarget": false,
"limitOnAnyTarget": false,
"limitOnEffect": "",
"limitOnProperty": "",
"text": {
"text": "",
"repeating": false,
"fontFamily": "Signika",
"fill": "#ffffff",
"interpolateColor": {
"color2": "",
"prc": ""
},
"fontSize": "36",
"align": "center",
"letterSpacing": "0",
"dropShadow": "true",
"strokeThickness": "1",
"stroke": "#111111",
"wordWrap": false,
"wordWrapWidth": "200",
"breakWords": false,
"maxHeight": "0",
"curve": {
"angle": "0",
"radius": "0",
"invert": false
}
},
"effect": "",
"imgLinked": false,
"interactivity": [],
"label": "Conviction"
},
"group": "Default",
"i": 2
},
{
"id": "gRwsZcZK",
"label": "Deflection",
"expression": "Deflection (melee) || Deflection (range) || Deflection (all)",
"codeExp": "",
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"disabled": false,
"overlayConfig": { "overlayConfig": {
"underlay": false, "underlay": false,
"bottom": false, "bottom": false,
@ -586,20 +425,605 @@
"invert": null "invert": null
} }
}, },
"id": "gRwsZcZK" "id": "gRwsZcZK",
"label": "Deflection"
}, },
"targetActors": null, "group": "Default",
"label": "Deflection (melee) || Deflection (range) || Deflection (raise)", "i": 3
"expression": "Deflection (melee) || Deflection (range) || Deflection (raise)",
"id": "gRwsZcZK"
}, },
{ {
"id": "toTYr3DQ",
"label": "Distracted",
"expression": "Distracted",
"codeExp": "",
"imgName": "", "imgName": "",
"imgSrc": "", "imgSrc": "",
"priority": 50, "priority": 50,
"config": {}, "config": {},
"overlay": true, "overlay": true,
"alwaysOn": false, "alwaysOn": false,
"disabled": false,
"overlayConfig": {
"id": "toTYr3DQ",
"html": {
"template": "",
"style": "",
"listeners": ""
},
"parentID": "",
"ui": false,
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": true,
"duration": "30000",
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkDimensionsX": false,
"linkDimensionsY": false,
"linkOpacity": false,
"linkStageScale": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Generic/Particles/ParticlesInward02_04_Regular_GreenYellow_400x400.webm",
"imgLinked": false,
"repeating": false,
"alpha": "1",
"tint": "",
"interpolateColor": {
"color2": "",
"prc": ""
},
"width": "",
"height": "",
"scaleX": "1.10",
"scaleY": "1.10",
"angle": "0",
"pOffsetX": "",
"pOffsetY": "",
"offsetX": "0",
"offsetY": "0",
"anchor": {
"x": 0.5,
"y": 0.5
},
"filter": "OutlineFilter",
"filterOptions": {
"thickness": 1,
"color": "#000000",
"quality": 0
},
"alwaysVisible": false,
"limitedToOwner": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnHighlight": false,
"limitOnControl": false,
"limitOnHUD": false,
"limitOnTarget": false,
"limitOnAnyTarget": false,
"limitOnEffect": "",
"limitOnProperty": "",
"text": {
"text": "",
"repeating": false,
"fontFamily": "Signika",
"fill": "#FFFFFF",
"interpolateColor": {
"color2": "",
"prc": ""
},
"fontSize": "36",
"align": "center",
"letterSpacing": "0",
"dropShadow": "true",
"strokeThickness": "1",
"stroke": "#111111",
"wordWrap": false,
"wordWrapWidth": "200",
"breakWords": false,
"maxHeight": "0",
"curve": {
"angle": "0",
"radius": "0",
"invert": false
}
},
"effect": "",
"interactivity": [],
"label": "Distracted"
},
"group": "Default",
"i": 4
},
{
"id": "KtequnXd",
"label": "Flying",
"expression": "Flying",
"codeExp": "",
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {
"tv_script": {
"onApply": "",
"onRemove": "",
"tmfxPreset": "dropshadow"
}
},
"overlay": false,
"alwaysOn": false,
"disabled": false,
"overlayConfig": {
"id": "KtequnXd",
"label": "Flying"
},
"group": "Default",
"i": 5
},
{
"id": "eO68BGDl",
"label": "Glow",
"expression": "Glow",
"codeExp": "",
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {
"light": {
"dim": 0.25,
"bright": 0,
"color": "#1c71d8",
"alpha": 0.4,
"animation": {
"type": "sunburst",
"speed": 3,
"intensity": 1
}
}
},
"overlay": true,
"alwaysOn": false,
"disabled": false,
"overlayConfig": {
"id": "eO68BGDl",
"html": {
"template": "",
"style": "",
"listeners": ""
},
"parentID": "",
"ui": false,
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": true,
"duration": "5000",
"clockwise": false
},
"linkMirror": true,
"linkScale": true,
"linkDimensionsX": false,
"linkDimensionsY": false,
"linkOpacity": false,
"linkStageScale": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Cantrip/Dancing_Lights/DancingLights_01_Yellow_200x200.webm",
"imgLinked": false,
"repeating": false,
"alpha": "1",
"tint": "",
"interpolateColor": {
"color2": "",
"prc": ""
},
"width": "",
"height": "",
"scaleX": "0.41",
"scaleY": "0.41",
"angle": "0",
"pOffsetX": "",
"pOffsetY": "",
"offsetX": "0",
"offsetY": "0.52",
"anchor": {
"x": 0.5,
"y": 0.5
},
"filter": "NONE",
"alwaysVisible": false,
"limitedToOwner": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnHighlight": false,
"limitOnControl": false,
"limitOnHUD": false,
"limitOnTarget": false,
"limitOnAnyTarget": false,
"limitOnEffect": "",
"limitOnProperty": "",
"text": {
"text": "",
"repeating": false,
"fontFamily": "Signika",
"fill": "#FFFFFF",
"interpolateColor": {
"color2": "",
"prc": ""
},
"fontSize": "36",
"align": "center",
"letterSpacing": "0",
"dropShadow": "true",
"strokeThickness": "1",
"stroke": "#111111",
"wordWrap": false,
"wordWrapWidth": "200",
"breakWords": false,
"maxHeight": "0",
"curve": {
"angle": "0",
"radius": "0",
"invert": false
}
},
"effect": "",
"interactivity": [],
"label": "Glow"
},
"group": "Default",
"i": 6
},
{
"id": "1po9hq1m",
"label": "Protection",
"expression": "Protection",
"codeExp": "",
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"disabled": false,
"overlayConfig": {
"id": "1po9hq1m",
"html": {
"template": "",
"style": "",
"listeners": ""
},
"parentID": "",
"ui": false,
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": "5000",
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkDimensionsX": false,
"linkDimensionsY": false,
"linkOpacity": false,
"linkStageScale": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/1st_Level/Shield/Shield_01_Regular_Blue_Loop_400x400.webm",
"imgLinked": false,
"repeating": false,
"alpha": "1",
"tint": "",
"interpolateColor": {
"color2": "",
"prc": ""
},
"width": "",
"height": "",
"scaleX": "1.6",
"scaleY": "1.6",
"angle": "0",
"pOffsetX": "",
"pOffsetY": "",
"offsetX": "0",
"offsetY": "0",
"anchor": {
"x": 0.5,
"y": 0.5
},
"filter": "NONE",
"alwaysVisible": false,
"limitedToOwner": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnHighlight": false,
"limitOnControl": false,
"limitOnHUD": false,
"limitOnTarget": false,
"limitOnAnyTarget": false,
"limitOnEffect": "",
"limitOnProperty": "",
"text": {
"text": "",
"repeating": false,
"fontFamily": "Signika",
"fill": "#FFFFFF",
"interpolateColor": {
"color2": "",
"prc": ""
},
"fontSize": "36",
"align": "center",
"letterSpacing": "0",
"dropShadow": "true",
"strokeThickness": "1",
"stroke": "#111111",
"wordWrap": false,
"wordWrapWidth": "200",
"breakWords": false,
"maxHeight": "0",
"curve": {
"angle": "0",
"radius": "0",
"invert": false
}
},
"effect": "",
"interactivity": [],
"label": "Protection"
},
"group": "Default",
"i": 7
},
{
"id": "mwFtNKpD",
"label": "Shaken",
"expression": "Shaken",
"codeExp": "",
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"disabled": false,
"overlayConfig": {
"id": "mwFtNKpD",
"html": {
"template": "",
"style": "",
"listeners": ""
},
"parentID": "",
"ui": false,
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": "30000",
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkDimensionsX": false,
"linkDimensionsY": false,
"linkOpacity": false,
"linkStageScale": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Generic/Template/Circle/TemplateStunCircle_01_Regular_Purple_800x800.webm",
"repeating": false,
"alpha": "0.5",
"tint": "",
"interpolateColor": {
"color2": "",
"prc": ""
},
"width": "",
"height": "",
"scaleX": "1",
"scaleY": "1",
"angle": "0",
"pOffsetX": "",
"pOffsetY": "",
"offsetX": "0",
"offsetY": "0",
"anchor": {
"x": 0.5,
"y": 0.5
},
"filter": "DropShadowFilter",
"filterOptions": {
"rotation": 45,
"distance": 7,
"color": "#000000",
"alpha": 0.84,
"shadowOnly": false,
"blur": 2,
"quality": 0
},
"alwaysVisible": false,
"limitedToOwner": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnHighlight": false,
"limitOnControl": false,
"limitOnHUD": false,
"limitOnTarget": false,
"limitOnAnyTarget": false,
"limitOnEffect": "",
"limitOnProperty": "",
"text": {
"text": "Shaken",
"repeating": false,
"fontFamily": "Signika",
"fill": "#FFFFFF",
"interpolateColor": {
"color2": "",
"prc": ""
},
"fontSize": "36",
"align": "center",
"letterSpacing": "0",
"dropShadow": "true",
"strokeThickness": "1",
"stroke": "#111111",
"wordWrap": false,
"wordWrapWidth": "200",
"breakWords": false,
"maxHeight": "0",
"curve": {
"angle": "0",
"radius": "0",
"invert": false
}
},
"effect": "",
"imgLinked": false,
"interactivity": [],
"label": "Shaken"
},
"group": "Default",
"i": 8
},
{
"id": "BP0Xx8wD",
"label": "Shroud",
"expression": "Shroud",
"codeExp": "",
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"disabled": false,
"overlayConfig": {
"id": "BP0Xx8wD",
"html": {
"template": "",
"style": "",
"listeners": ""
},
"parentID": "",
"ui": false,
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": "5000",
"clockwise": true
},
"linkMirror": true,
"linkScale": true,
"linkDimensionsX": false,
"linkDimensionsY": false,
"linkOpacity": false,
"linkStageScale": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/2nd_Level/Darkness/Opacities/Darkness_01_Black_75OPA_600x600.webm",
"imgLinked": false,
"repeating": false,
"alpha": "1",
"tint": "",
"interpolateColor": {
"color2": "",
"prc": ""
},
"width": "",
"height": "",
"scaleX": "1",
"scaleY": "1",
"angle": "0",
"pOffsetX": "",
"pOffsetY": "",
"offsetX": "0",
"offsetY": "0",
"anchor": {
"x": 0.5,
"y": 0.5
},
"filter": "NONE",
"alwaysVisible": false,
"limitedToOwner": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnHighlight": false,
"limitOnControl": false,
"limitOnHUD": false,
"limitOnTarget": false,
"limitOnAnyTarget": false,
"limitOnEffect": "",
"limitOnProperty": "",
"text": {
"text": "",
"repeating": false,
"fontFamily": "Signika",
"fill": "#ffffff",
"interpolateColor": {
"color2": "",
"prc": ""
},
"fontSize": "36",
"align": "center",
"letterSpacing": "0",
"dropShadow": "true",
"strokeThickness": "1",
"stroke": "#111111",
"wordWrap": false,
"wordWrapWidth": "200",
"breakWords": false,
"maxHeight": "0",
"curve": {
"angle": "0",
"radius": "0",
"invert": false
}
},
"effect": "",
"interactivity": [],
"label": "Shroud"
},
"group": "Default",
"i": 9
},
{
"id": "nOfPMsQp",
"label": "Stunned",
"expression": "Stunned",
"codeExp": "",
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"disabled": false,
"overlayConfig": { "overlayConfig": {
"underlay": false, "underlay": false,
"bottom": false, "bottom": false,
@ -617,17 +1041,17 @@
"linkOpacity": false, "linkOpacity": false,
"loop": true, "loop": true,
"playOnce": false, "playOnce": false,
"img": "modules/JB2A_DnD5e/Library/1st_Level/Shield/Shield_01_Regular_Blue_Loop_400x400.webm", "img": "modules/JB2A_DnD5e/Library/Generic/UI/IconStun_01_Regular_Purple_200x200.webm",
"alpha": 1, "alpha": 1,
"tint": "", "tint": "",
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"scaleX": 1.6, "scaleX": 0.77,
"scaleY": 1.6, "scaleY": 0.77,
"angle": 0, "angle": 0,
"filter": "OutlineFilter", "filter": "OutlineFilter",
"filterOptions": { "filterOptions": {
"thickness": 2.9, "thickness": 1,
"color": 0, "color": 0,
"quality": 0.1 "quality": 0.1
}, },
@ -649,12 +1073,122 @@
"invert": null "invert": null
} }
}, },
"id": "1po9hq1m" "id": "nOfPMsQp",
"label": "Stunned"
}, },
"targetActors": null, "group": "Default",
"label": "Protection", "i": 10
"expression": "Protection", },
"id": "1po9hq1m" {
"id": "J4GrRaxL",
"label": "Vulnerable",
"expression": "Vulnerable",
"codeExp": "",
"imgName": "",
"imgSrc": "",
"priority": 50,
"config": {},
"overlay": true,
"alwaysOn": false,
"disabled": false,
"overlayConfig": {
"id": "J4GrRaxL",
"html": {
"template": "",
"style": "",
"listeners": ""
},
"parentID": "",
"ui": false,
"underlay": false,
"bottom": false,
"top": false,
"inheritTint": false,
"linkRotation": true,
"animation": {
"relative": false,
"rotate": false,
"duration": "5200",
"clockwise": false
},
"linkMirror": true,
"linkScale": true,
"linkDimensionsX": false,
"linkDimensionsY": false,
"linkOpacity": false,
"linkStageScale": false,
"loop": true,
"playOnce": false,
"img": "modules/JB2A_DnD5e/Library/Generic/Marker/MarkerShieldCracked_03_Regular_Purple_400x400.webm",
"imgLinked": false,
"repeating": false,
"alpha": "1",
"tint": "",
"interpolateColor": {
"color2": "",
"prc": ""
},
"width": "",
"height": "",
"scaleX": "1.5",
"scaleY": "1.5",
"angle": "0",
"pOffsetX": "",
"pOffsetY": "",
"offsetX": "0",
"offsetY": "0",
"anchor": {
"x": 0.5,
"y": 0.5
},
"filter": "OutlineFilter",
"filterOptions": {
"thickness": 1,
"color": "#000000",
"quality": 0.1
},
"alwaysVisible": false,
"limitedToOwner": false,
"limitedUsers": [],
"limitOnHover": false,
"limitOnHighlight": false,
"limitOnControl": false,
"limitOnHUD": false,
"limitOnTarget": false,
"limitOnAnyTarget": false,
"limitOnEffect": "",
"limitOnProperty": "",
"text": {
"text": "",
"repeating": false,
"fontFamily": "Signika",
"fill": "#FFFFFF",
"interpolateColor": {
"color2": "",
"prc": ""
},
"fontSize": "36",
"align": "center",
"letterSpacing": "0",
"dropShadow": "true",
"strokeThickness": "1",
"stroke": "#111111",
"wordWrap": false,
"wordWrapWidth": "200",
"breakWords": false,
"maxHeight": "0",
"curve": {
"angle": "0",
"radius": "0",
"invert": false
}
},
"effect": "",
"interactivity": [],
"label": "Vulnerable"
},
"group": "Default",
"i": 11
} }
] ]
} }

File diff suppressed because one or more lines are too long

View File

@ -138,7 +138,10 @@ function getDistance (origin, target) {
const ray = new Ray(origin, target) const ray = new Ray(origin, target)
const originScale = getScaleDistanceMod(origin) const originScale = getScaleDistanceMod(origin)
const targetScale = getScaleDistanceMod(target) const targetScale = getScaleDistanceMod(target)
const distance = shim.canvas.grid.measureDistances([{ ray }], { gridSpaces: true })[0] const flatDistance = shim.canvas.grid.measureDistances(
[{ ray }], { gridSpaces: true })[0]
const elevation = Math.abs(origin.document.elevation - target.document.elevation)
const distance = Math.sqrt(elevation * elevation + flatDistance * flatDistance)
return distance - (originScale + targetScale) return distance - (originScale + targetScale)
} }
@ -178,7 +181,8 @@ function calcGangup (attacker, target, debug) {
t.id !== target.id && t.id !== target.id &&
t.actor.system.status.isStunned === false && t.actor.system.status.isStunned === false &&
t.visible && t.visible &&
withinRange(target, t, range) withinRange(target, t, range) &&
!(t.actor.effects.find(c => c.name === 'Incapacitated' || c.name === 'Defeated'))
) )
const attackerAllies = withinRangeOfToken.filter( const attackerAllies = withinRangeOfToken.filter(
t => t.document.disposition === attacker.document.disposition) t => t.document.disposition === attacker.document.disposition)