clue/doom handling
This commit is contained in:
parent
93e26b6b73
commit
8b04ee0245
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user