outcommented token manager logs
This commit is contained in:
parent
286f873ded
commit
a9e23a0b32
@ -342,18 +342,17 @@ do
|
|||||||
if extraUses ~= nil and extraUses[type] ~= nil then
|
if extraUses ~= nil and extraUses[type] ~= nil then
|
||||||
tokenCount = tokenCount + extraUses[type]
|
tokenCount = tokenCount + extraUses[type]
|
||||||
end
|
end
|
||||||
log("Spawning single use tokens for "..card.getName()..'['..card.getDescription()..']: '..tokenCount.."x "..token)
|
--log("Spawning single use tokens for "..card.getName()..'['..card.getDescription()..']: '..tokenCount.."x "..token)
|
||||||
TokenManager.spawnTokenGroup(card, token, tokenCount)
|
TokenManager.spawnTokenGroup(card, token, tokenCount)
|
||||||
else
|
else
|
||||||
for i, useInfo in ipairs(uses) do
|
for i, useInfo in ipairs(uses) do
|
||||||
type = useInfo.type
|
type = useInfo.type
|
||||||
token = useInfo.token
|
token = useInfo.token
|
||||||
tokenCount = (useInfo.count or 0)
|
tokenCount = (useInfo.count or 0) + (useInfo.countPerInvestigator or 0) * playArea.getInvestigatorCount()
|
||||||
+ (useInfo.countPerInvestigator or 0) * playArea.getInvestigatorCount()
|
|
||||||
if extraUses ~= nil and extraUses[type] ~= nil then
|
if extraUses ~= nil and extraUses[type] ~= nil then
|
||||||
tokenCount = tokenCount + extraUses[type]
|
tokenCount = tokenCount + extraUses[type]
|
||||||
end
|
end
|
||||||
log("Spawning use array tokens for "..card.getName()..'['..card.getDescription()..']: '..tokenCount.."x "..token)
|
--log("Spawning use array tokens for "..card.getName()..'['..card.getDescription()..']: '..tokenCount.."x "..token)
|
||||||
-- Shift each spawned group after the first down so they don't pile on each other
|
-- Shift each spawned group after the first down so they don't pile on each other
|
||||||
TokenManager.spawnTokenGroup(card, token, tokenCount, (i - 1) * 0.8)
|
TokenManager.spawnTokenGroup(card, token, tokenCount, (i - 1) * 0.8)
|
||||||
end
|
end
|
||||||
@ -383,7 +382,7 @@ do
|
|||||||
internal.spawnPlayerCardTokensFromDataHelper = function(card, playerData)
|
internal.spawnPlayerCardTokensFromDataHelper = function(card, playerData)
|
||||||
token = playerData.tokenType
|
token = playerData.tokenType
|
||||||
tokenCount = playerData.tokenCount
|
tokenCount = playerData.tokenCount
|
||||||
log("Spawning data helper tokens for "..card.getName()..'['..card.getDescription()..']: '..tokenCount.."x "..token)
|
--log("Spawning data helper tokens for "..card.getName()..'['..card.getDescription()..']: '..tokenCount.."x "..token)
|
||||||
TokenManager.spawnTokenGroup(card, token, tokenCount)
|
TokenManager.spawnTokenGroup(card, token, tokenCount)
|
||||||
tokenSpawnTracker.markTokensSpawned(card.getGUID())
|
tokenSpawnTracker.markTokensSpawned(card.getGUID())
|
||||||
end
|
end
|
||||||
@ -416,7 +415,7 @@ do
|
|||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
log(card.getName() .. ' : ' .. locationData.type .. ' : ' .. locationData.value .. ' : ' .. locationData.clueSide)
|
--log(card.getName() .. ' : ' .. locationData.type .. ' : ' .. locationData.value .. ' : ' .. locationData.clueSide)
|
||||||
if ((card.is_face_down and locationData.clueSide == 'back')
|
if ((card.is_face_down and locationData.clueSide == 'back')
|
||||||
or (not card.is_face_down and locationData.clueSide == 'front')) then
|
or (not card.is_face_down and locationData.clueSide == 'front')) then
|
||||||
if locationData.type == 'fixed' then
|
if locationData.type == 'fixed' then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user