diff --git a/src/playermat/Playermat.ttslua b/src/playermat/Playermat.ttslua index e65568b1..72c71afb 100644 --- a/src/playermat/Playermat.ttslua +++ b/src/playermat/Playermat.ttslua @@ -109,11 +109,11 @@ local matColor = self.getMemo() function onSave() return JSON.encode({ activeInvestigatorClass = activeInvestigatorClass, - activeInvestigatorId = activeInvestigatorId, - isClassTextureEnabled = isClassTextureEnabled, - isDrawButtonVisible = isDrawButtonVisible, - playerColor = playerColor, - slotData = slotData + activeInvestigatorId = activeInvestigatorId, + isClassTextureEnabled = isClassTextureEnabled, + isDrawButtonVisible = isDrawButtonVisible, + playerColor = playerColor, + slotData = slotData }) end @@ -373,8 +373,8 @@ function doUpkeep(_, clickedByColor, isRightClick) end end - -- gain a resource (or two if playing Jenny Barnes) - if string.match(activeInvestigatorId, "%d%d%d%d%d") == "02003" then + -- gain a resource (or two if playing non-parallel Jenny Barnes) + if activeInvestigatorId == "02003" or activeInvestigatorId == "02003-pb" then updateCounter({ type = "ResourceCounter", modifier = 2 }) printToColor("Gaining 2 resources (Jenny)", messageColor) else @@ -405,7 +405,8 @@ function doUpkeep(_, clickedByColor, isRightClick) -- draw up to 5 cards local cardsToDraw = 5 - #handCards + #cardsToDiscard if cardsToDraw > 0 then - printToColor("Discarding " .. #cardsToDiscard .. " and drawing " .. cardsToDraw .. " card(s). (Patrice)", messageColor) + printToColor("Discarding " .. #cardsToDiscard .. " and drawing " .. cardsToDraw .. " card(s). (Patrice)", + messageColor) -- add some time if there are any cards to discard local k = 0 @@ -834,6 +835,8 @@ end function spawnTokensFor(object) local extraUses = {} + + -- add one additional charge for Akachi Onyele if activeInvestigatorId == "03004" then extraUses["Charge"] = 1 end