Ensure the Bless Curse Manager triggers the Token Arranger (e.g. for Kohaku)

This commit is contained in:
Chr1Z93 2024-08-13 23:53:11 +02:00
parent 7946ac4241
commit 183aaf5443
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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