From 183aaf544398da4be7c4e414314137635a79b4eb Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Tue, 13 Aug 2024 23:53:11 +0200 Subject: [PATCH] Ensure the Bless Curse Manager triggers the Token Arranger (e.g. for Kohaku) --- src/chaosbag/BlessCurseManager.ttslua | 3 +-- src/chaosbag/BlessCurseManagerApi.ttslua | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/chaosbag/BlessCurseManager.ttslua b/src/chaosbag/BlessCurseManager.ttslua index 945123e0..04251165 100644 --- a/src/chaosbag/BlessCurseManager.ttslua +++ b/src/chaosbag/BlessCurseManager.ttslua @@ -199,8 +199,6 @@ function callFunctions(type, isRightClick) else addToken(type) end - - tokenArrangerApi.layout() end --------------------------------------------------------- @@ -317,6 +315,7 @@ function removeToken(type) printToAll("Removing " .. type .. " token " .. formatTokenCount(type)) updateButtonLabels() obj.destruct() + tokenArrangerApi.layout() end }) end diff --git a/src/chaosbag/BlessCurseManagerApi.ttslua b/src/chaosbag/BlessCurseManagerApi.ttslua index 896a6c96..26bfcb8a 100644 --- a/src/chaosbag/BlessCurseManagerApi.ttslua +++ b/src/chaosbag/BlessCurseManagerApi.ttslua @@ -54,7 +54,7 @@ do BlessCurseManagerApi.addBlurseSealingMenu = function(playerColor, hoveredObject) getManager().call("addMenuOptions", { playerColor = playerColor, hoveredObject = hoveredObject }) end - + -- adds bless / curse to the chaos bag ---@param type string Type of chaos token ("Bless" or "Curse") BlessCurseManagerApi.addToken = function(type) @@ -66,7 +66,7 @@ do BlessCurseManagerApi.removeToken = function(type) getManager().call("removeToken", type) end - + BlessCurseManagerApi.getBlessCurseInBag = function() return getManager().call("getBlessCurseInBag", {}) end