Ensure the Bless Curse Manager triggers the Token Arranger (e.g. for Kohaku)
This commit is contained in:
parent
7946ac4241
commit
183aaf5443
@ -199,8 +199,6 @@ function callFunctions(type, isRightClick)
|
|||||||
else
|
else
|
||||||
addToken(type)
|
addToken(type)
|
||||||
end
|
end
|
||||||
|
|
||||||
tokenArrangerApi.layout()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
@ -317,6 +315,7 @@ function removeToken(type)
|
|||||||
printToAll("Removing " .. type .. " token " .. formatTokenCount(type))
|
printToAll("Removing " .. type .. " token " .. formatTokenCount(type))
|
||||||
updateButtonLabels()
|
updateButtonLabels()
|
||||||
obj.destruct()
|
obj.destruct()
|
||||||
|
tokenArrangerApi.layout()
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -54,7 +54,7 @@ do
|
|||||||
BlessCurseManagerApi.addBlurseSealingMenu = function(playerColor, hoveredObject)
|
BlessCurseManagerApi.addBlurseSealingMenu = function(playerColor, hoveredObject)
|
||||||
getManager().call("addMenuOptions", { playerColor = playerColor, hoveredObject = hoveredObject })
|
getManager().call("addMenuOptions", { playerColor = playerColor, hoveredObject = hoveredObject })
|
||||||
end
|
end
|
||||||
|
|
||||||
-- adds bless / curse to the chaos bag
|
-- adds bless / curse to the chaos bag
|
||||||
---@param type string Type of chaos token ("Bless" or "Curse")
|
---@param type string Type of chaos token ("Bless" or "Curse")
|
||||||
BlessCurseManagerApi.addToken = function(type)
|
BlessCurseManagerApi.addToken = function(type)
|
||||||
@ -66,7 +66,7 @@ do
|
|||||||
BlessCurseManagerApi.removeToken = function(type)
|
BlessCurseManagerApi.removeToken = function(type)
|
||||||
getManager().call("removeToken", type)
|
getManager().call("removeToken", type)
|
||||||
end
|
end
|
||||||
|
|
||||||
BlessCurseManagerApi.getBlessCurseInBag = function()
|
BlessCurseManagerApi.getBlessCurseInBag = function()
|
||||||
return getManager().call("getBlessCurseInBag", {})
|
return getManager().call("getBlessCurseInBag", {})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user