diff --git a/objects/TokenSource.124381/ResourceCounter.498ec0.json b/objects/TokenSource.124381/ResourceCounter.498ec0.json index bf3c814f..bd5fa503 100644 --- a/objects/TokenSource.124381/ResourceCounter.498ec0.json +++ b/objects/TokenSource.124381/ResourceCounter.498ec0.json @@ -22,7 +22,7 @@ "ImageURL": "http://cloud-3.steamusercontent.com/ugc/949599153663401115/EAA6D40FC6E15204BBE551BCDED35CC8C75111BF/", "WidthScale": 0 }, - "Description": "0", + "Description": "", "DragSelectable": true, "GMNotes": "resourceCounter", "GUID": "498ec0", diff --git a/src/core/token/TokenManager.ttslua b/src/core/token/TokenManager.ttslua index 4c01762c..d6e4cb7d 100644 --- a/src/core/token/TokenManager.ttslua +++ b/src/core/token/TokenManager.ttslua @@ -297,7 +297,6 @@ do local tokenSource = getObjectFromGUID(TOKEN_SOURCE_GUID) for _, tokenTemplate in ipairs(tokenSource.getData().ContainedObjects) do local tokenName = tokenTemplate.GMNotes - tokenTemplate.GMNotes = "" tokenTemplates[tokenName] = tokenTemplate end end diff --git a/src/playermat/Playmat.ttslua b/src/playermat/Playmat.ttslua index c60cdcfb..4359db56 100644 --- a/src/playermat/Playmat.ttslua +++ b/src/playermat/Playmat.ttslua @@ -424,7 +424,7 @@ function replenishTokens(card, count, replenish) if obj.getCustomObject().image == "http://cloud-3.steamusercontent.com/ugc/1758068501357192910/11DDDC7EF621320962FDCF3AE3211D5EDC3D1573/" then foundTokens = foundTokens + math.abs(obj.getQuantity()) obj.destruct() - elseif obj.getName() == "Resource Counter" then + elseif obj.getGMNotes() == "resourceCounter" then foundTokens = obj.getVar("val") clickableResourceCounter = obj break