Merge pull request #621 from argonui/cluetaking

Added variants of the clue taking game key
This commit is contained in:
BootleggerFinn 2024-03-04 14:47:59 -06:00 committed by GitHub
commit 095207b016
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,10 @@ function onLoad()
addHotkey("Switch seat clockwise", switchSeatClockwise)
addHotkey("Switch seat counter-clockwise", switchSeatCounterClockwise)
addHotkey("Take clue from location", takeClueFromLocation)
addHotkey("Take clue from location (White)", takeClueFromLocationWhite)
addHotkey("Take clue from location (Orange)", takeClueFromLocationOrange)
addHotkey("Take clue from location (Green)", takeClueFromLocationGreen)
addHotkey("Take clue from location (Red)", takeClueFromLocationRed)
addHotkey("Upkeep", triggerUpkeep)
addHotkey("Upkeep (Multi-handed)", triggerUpkeepMultihanded)
end
@ -258,6 +262,22 @@ function switchSeat(playerColor, direction)
navigationOverlayApi.loadCamera(Player[playerColor], usedColors[index])
end
function takeClueFromLocationWhite(_, hoveredObject)
takeClueFromLocation("White", hoveredObject)
end
function takeClueFromLocationOrange(_, hoveredObject)
takeClueFromLocation("Orange", hoveredObject)
end
function takeClueFromLocationGreen(_, hoveredObject)
takeClueFromLocation("Green", hoveredObject)
end
function takeClueFromLocationRed(_, hoveredObject)
takeClueFromLocation("Red", hoveredObject)
end
-- takes a clue from a location, player needs to hover the clue directly or the location
function takeClueFromLocation(playerColor, hoveredObject)
local cardName, clue