Merge branch 'main' into global-api
This commit is contained in:
commit
d81d395f2e
@ -66,12 +66,16 @@ function onScriptingButtonDown(index, playerColor)
|
|||||||
|
|
||||||
-- check for nearest investigator card and change action token state to its class
|
-- check for nearest investigator card and change action token state to its class
|
||||||
elseif tokenType == "universalActionAbility" then
|
elseif tokenType == "universalActionAbility" then
|
||||||
|
callback = function(spawned)
|
||||||
local matColor = playermatApi.getMatColorByPosition(position)
|
local matColor = playermatApi.getMatColorByPosition(position)
|
||||||
local matRotation = playermatApi.returnRotation(matColor)
|
local matRotation = playermatApi.returnRotation(matColor)
|
||||||
local class = playermatApi.returnInvestigatorClass(matColor)
|
local activeInvestigatorData = playermatApi.getActiveInvestigatorData(matColor)
|
||||||
callback = function(spawned)
|
|
||||||
spawned.setRotation(matRotation)
|
spawned.setRotation(matRotation)
|
||||||
spawned.call("updateClassAndSymbol", { class = class, symbol = class })
|
spawned.call("updateClassAndSymbol", {
|
||||||
|
class = activeInvestigatorData.class,
|
||||||
|
symbol = activeInvestigatorData.class
|
||||||
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user