Commit 3b4b15b16511caf0df186c7668d2416d2a0d27c4

Authored by liguanghui
1 parent 51e10199

齿轮加速消耗修改为虹光玉

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/actions/RoleAction.lua
... ... @@ -1388,7 +1388,7 @@ function _M.goldBuyRpc(agent, data)
1388 1388 if not costD then
1389 1389 return 1
1390 1390 end
1391   - if costD ~= 0 and not role:checkItemEnough({[ItemId.Diamond] = costD}) then
  1391 + if costD ~= 0 and not role:checkItemEnough({[ItemId.Jade] = costD}) then
1392 1392 return 2
1393 1393 end
1394 1394 local goldC = 0
... ... @@ -1410,7 +1410,7 @@ function _M.goldBuyRpc(agent, data)
1410 1410 local coef = role.storeData:getGearExchangeCoef()
1411 1411 goldC = goldC * coef
1412 1412 role.dailyData:updateProperty({field = "goldBuyT", value = curT + 1})
1413   - role:costItems({[ItemId.Diamond] = costD}, {log = {desc = "goldBuy"}})
  1413 + role:costItems({[ItemId.Jade] = costD}, {log = {desc = "goldBuy"}})
1414 1414 local reward, change = role:award({[ItemId.Gold] = math.floor(goldC)}, {log = {desc = "goldBuy"}})
1415 1415 SendPacket(actionCodes.Role_goldBuyRpc, MsgPack.pack(role:packReward(reward, change)))
1416 1416 return true
... ...