clue/doom handling

This commit is contained in:
Chr1Z93 2023-11-05 17:17:28 +01:00
parent 93e26b6b73
commit 8b04ee0245

View File

@ -153,11 +153,25 @@ function removeOneUse(playerColor, hoveredObject)
return
end
-- handling for stacked tokens
if targetObject.getQuantity() > 1 then
targetObject = targetObject.takeObject()
end
-- feedback message
local tokenName = targetObject.getName()
if tokenName == "" then
if targetObject.memo ~= "" then
tokenName = titleCase(targetObject.memo)
-- name handling for clue / doom
if targetObject.memo == "clueDoom" then
if targetObject.is_face_down then
tokenName = "Doom"
else
tokenName = "Clue"
end
else
tokenName = titleCase(targetObject.memo)
end
else
tokenName = "Unknown"
end