added ability token support
This commit is contained in:
parent
f1117e8988
commit
7cc6a0d14f
@ -8,7 +8,7 @@
|
||||
"combatIcons": 2,
|
||||
"agilityIcons": 3,
|
||||
"cycle": "The Dream-Eaters",
|
||||
"extraToken": "Mystic",
|
||||
"extraToken": "MysticAbility",
|
||||
"signatures": [
|
||||
{
|
||||
"06013": 1,
|
||||
|
@ -11,7 +11,7 @@
|
||||
"combatIcons": 2,
|
||||
"agilityIcons": 1,
|
||||
"cycle": "Edge of the Earth",
|
||||
"extraToken": "Resource",
|
||||
"extraToken": "SeekerAbility",
|
||||
"signatures": [
|
||||
{
|
||||
"08005": 1,
|
||||
|
@ -67,7 +67,7 @@
|
||||
},
|
||||
"Description": "The Astronomer",
|
||||
"DragSelectable": true,
|
||||
"GMNotes": "{\n \"id\": \"08004\",\n \"alternate_ids\": [\n \"98007\"\n ],\n \"type\": \"Investigator\",\n \"class\": \"Seeker\",\n \"traits\": \"Miskatonic.\",\n \"willpowerIcons\": 4,\n \"intellectIcons\": 5,\n \"combatIcons\": 2,\n \"agilityIcons\": 1,\n \"cycle\": \"Edge of the Earth\",\n \"extraToken\": \"Resource\",\n \"signatures\": [\n {\n \"08005\": 1,\n \"08006\": 1,\n \"98008\": 1,\n \"98009\": 1\n }\n ]\n}",
|
||||
"GMNotes": "{\n \"id\": \"08004\",\n \"alternate_ids\": [\n \"98007\"\n ],\n \"type\": \"Investigator\",\n \"class\": \"Seeker\",\n \"traits\": \"Miskatonic.\",\n \"willpowerIcons\": 4,\n \"intellectIcons\": 5,\n \"combatIcons\": 2,\n \"agilityIcons\": 1,\n \"cycle\": \"Edge of the Earth\",\n \"extraToken\": \"SeekerAbility\",\n \"signatures\": [\n {\n \"08005\": 1,\n \"08006\": 1,\n \"98008\": 1,\n \"98009\": 1\n }\n ]\n}",
|
||||
"GUID": "49634c",
|
||||
"Grid": true,
|
||||
"GridProjection": false,
|
||||
|
@ -1318,7 +1318,8 @@ function maybeUpdateActiveInvestigator(card, md)
|
||||
local count = { action = 0, ability = 0 }
|
||||
for str in string.gmatch(md.extraToken, "([^|]+)") do
|
||||
local type = "action"
|
||||
if str == "FreeTrigger" or str == "Reaction" then
|
||||
if str == "FreeTrigger" or str == "Reaction" or string.contains(str, "Ability") then
|
||||
str = str:gsub("Ability", "")
|
||||
type = "ability"
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user