Commit b1b3c0d62def0719e9b44ae96a71fb514b315fe0
Committed by
熊润斐
1 parent
8e1a3c42
合成道具数量不对bug
# Conflicts: # src/csvdata
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/actions/HeroAction.lua
... | ... | @@ -1092,6 +1092,9 @@ function _M.itemComposeRpc(agent, data) |
1092 | 1092 | if not config then return 2 end |
1093 | 1093 | |
1094 | 1094 | local cost = config.cost:toNumMap() |
1095 | + for k, v in pairs(cost) do | |
1096 | + cost[k] = v * count | |
1097 | + end | |
1095 | 1098 | if not role:checkItemEnough(cost) then return 2 end |
1096 | 1099 | role:costItems(cost, {log = {desc = "itemCompose", int1 = itemId, int2 = count}}) |
1097 | 1100 | role:award({[itemId] = count}, {log = {desc = "itemCompose"}}) | ... | ... |