Commit 94e5e38b95385426a8c0a096a23a4c02c643012c
1 parent
f07252a2
fix: del log
Showing
1 changed file
with
0 additions
and
4 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -1532,8 +1532,6 @@ function _M.diamondConvertRpc(agent, data) |
1532 | 1532 | |
1533 | 1533 | local oper = msg.oper |
1534 | 1534 | if oper ~= 1 and oper ~= 2 then return 0 end |
1535 | - print("oper: ") | |
1536 | - print(oper) | |
1537 | 1535 | |
1538 | 1536 | local cost = math.ceil(msg.cost or 0) |
1539 | 1537 | if cost <= 0 then return 1 end |
... | ... | @@ -1551,7 +1549,6 @@ function _M.diamondConvertRpc(agent, data) |
1551 | 1549 | local quan = math.floor(get/globalCsv.recruit_cost) |
1552 | 1550 | local remain = get - quan * globalCsv.recruit_cost |
1553 | 1551 | |
1554 | - print("get: " .. get .. "; old: " .. old .. "; remain: " .. remain) | |
1555 | 1552 | local allReward = {} |
1556 | 1553 | if remain > old then |
1557 | 1554 | allReward[ItemId.Jade] = remain - old |
... | ... | @@ -1565,7 +1562,6 @@ function _M.diamondConvertRpc(agent, data) |
1565 | 1562 | if quan > 0 then |
1566 | 1563 | allReward[ItemId.RecruitmentCard] = quan |
1567 | 1564 | end |
1568 | - dump(allReward) | |
1569 | 1565 | |
1570 | 1566 | reward, change = role:award(allReward, {log = {desc = "convert"}}) |
1571 | 1567 | end | ... | ... |