updates
This commit is contained in:
parent
b28c9c08cd
commit
4955c09e65
@ -317,8 +317,8 @@ function drawChaosToken(params)
|
||||
end
|
||||
|
||||
local token
|
||||
|
||||
if params.guidToBeResolved then -- resolve a sealed token from a card
|
||||
-- resolve a sealed token from a card
|
||||
if params.guidToBeResolved then
|
||||
token = getObjectFromGUID(params.guidToBeResolved)
|
||||
token.setPositionSmooth(tokenPosition)
|
||||
local guid = token.getGUID()
|
||||
@ -327,7 +327,8 @@ function drawChaosToken(params)
|
||||
blessCurseManagerApi.releasedToken(tokenType, guid)
|
||||
end
|
||||
tokenArrangerApi.layout()
|
||||
else -- take a token from the bag, either specified or random
|
||||
-- take a token from the bag, either specified or random
|
||||
else
|
||||
local takeParameters = {
|
||||
position = tokenPosition,
|
||||
rotation = tokenRotation
|
||||
@ -345,6 +346,8 @@ function drawChaosToken(params)
|
||||
end
|
||||
-- get data for token description
|
||||
local name = token.getName()
|
||||
if name == "" then name = "Custom" end
|
||||
|
||||
local tokenData = mythosAreaApi.returnTokenData().tokenData or {}
|
||||
local specificData = tokenData[name] or {}
|
||||
token.setDescription(specificData.description or "")
|
||||
|
Loading…
Reference in New Issue
Block a user