Commit 1ebe1c948874434ed8785301ea36df8cd5f3fee8

Authored by liuzujun
1 parent 70fb62d1

钻石转换日志打点

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/actions/RoleAction.lua
... ... @@ -1431,7 +1431,7 @@ function _M.diamondConvertRpc(agent, data)
1431 1431 role:costDiamond({count = cost, log = {desc = "convert", int1 = oper, int2 = get}})
1432 1432 local reward, change
1433 1433 if oper == 1 then -- 钻石兑换成虹光玉
1434   - reward, change = role:award({[ItemId.Jade] = get}, {log = {desc = "convert"}})
  1434 + reward, change = role:award({[ItemId.Jade] = get}, {log = {desc = "convert", short1=oper}})
1435 1435 elseif oper == 2 then -- 钻石兑换成虹光玉再兑换成招募券
1436 1436 local old = role:getItemCount(ItemId.Jade)
1437 1437 get = old + get
... ... @@ -1444,7 +1444,7 @@ function _M.diamondConvertRpc(agent, data)
1444 1444 allReward[ItemId.Jade] = remain - old
1445 1445 elseif remain == old then
1446 1446 else
1447   - role:costItems({[ItemId.Jade] = old - remain}, {log = {desc = "convert"}})
  1447 + role:costItems({[ItemId.Jade] = old - remain}, {log = {desc = "convert", short1=oper}})
1448 1448 end
1449 1449  
1450 1450 if quan > 0 then
... ...