Merge pull request #621 from argonui/cluetaking
Added variants of the clue taking game key
This commit is contained in:
commit
095207b016
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user