From a9e23a0b32f3abad72443f1f3d61270b0432f078 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 3 May 2023 13:44:47 +0200 Subject: [PATCH 1/2] outcommented token manager logs --- src/core/token/TokenManager.ttslua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/core/token/TokenManager.ttslua b/src/core/token/TokenManager.ttslua index 98556dc6..c1784c25 100644 --- a/src/core/token/TokenManager.ttslua +++ b/src/core/token/TokenManager.ttslua @@ -342,18 +342,17 @@ do if extraUses ~= nil and extraUses[type] ~= nil then tokenCount = tokenCount + extraUses[type] 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) else for i, useInfo in ipairs(uses) do type = useInfo.type token = useInfo.token - tokenCount = (useInfo.count or 0) - + (useInfo.countPerInvestigator or 0) * playArea.getInvestigatorCount() + tokenCount = (useInfo.count or 0) + (useInfo.countPerInvestigator or 0) * playArea.getInvestigatorCount() if extraUses ~= nil and extraUses[type] ~= nil then tokenCount = tokenCount + extraUses[type] 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 TokenManager.spawnTokenGroup(card, token, tokenCount, (i - 1) * 0.8) end @@ -383,7 +382,7 @@ do internal.spawnPlayerCardTokensFromDataHelper = function(card, playerData) token = playerData.tokenType 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) tokenSpawnTracker.markTokensSpawned(card.getGUID()) end @@ -416,7 +415,7 @@ do return 0 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') or (not card.is_face_down and locationData.clueSide == 'front')) then if locationData.type == 'fixed' then From 4a5807611952469abc1380a0d8962b2aea746dd7 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Thu, 4 May 2023 00:08:32 +0200 Subject: [PATCH 2/2] reverted formatting change --- src/core/token/TokenManager.ttslua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/token/TokenManager.ttslua b/src/core/token/TokenManager.ttslua index c1784c25..8bcfb6fe 100644 --- a/src/core/token/TokenManager.ttslua +++ b/src/core/token/TokenManager.ttslua @@ -348,7 +348,8 @@ do for i, useInfo in ipairs(uses) do type = useInfo.type token = useInfo.token - tokenCount = (useInfo.count or 0) + (useInfo.countPerInvestigator or 0) * playArea.getInvestigatorCount() + tokenCount = (useInfo.count or 0) + + (useInfo.countPerInvestigator or 0) * playArea.getInvestigatorCount() if extraUses ~= nil and extraUses[type] ~= nil then tokenCount = tokenCount + extraUses[type] end