diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 8383643..3918e60 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -1090,6 +1090,9 @@ function _M.itemComposeRpc(agent, data) if not config then return 2 end local cost = config.cost:toNumMap() + for k, v in pairs(cost) do + cost[k] = v * count + end if not role:checkItemEnough(cost) then return 2 end role:costItems(cost, {log = {desc = "itemCompose", int1 = itemId, int2 = count}}) role:award({[itemId] = count}, {log = {desc = "itemCompose"}}) diff --git a/src/csvdata b/src/csvdata index 4cafc1b..f019454 160000 --- a/src/csvdata +++ b/src/csvdata @@ -1 +1 @@ -Subproject commit 4cafc1bd8425bca1270ea2d1a31586cc1b723223 +Subproject commit f019454e533ec12642ab9d7518c80b73c1cc00bb -- libgit2 0.21.2