Update playermat token check to use Memo

This commit is contained in:
Buhallin 2023-01-18 01:06:07 -08:00
parent 7e09f5e780
commit ca7f5b6367
No known key found for this signature in database
GPG Key ID: DB3C362823852294

View File

@ -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.getGMNotes() == "resourceCounter" then
elseif obj.getMemo() == "resourceCounter" then
foundTokens = obj.getVar("val")
clickableResourceCounter = obj
break