diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index ba69b1c..6743832 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -1388,7 +1388,7 @@ function _M.goldBuyRpc(agent, data) if not costD then return 1 end - if costD ~= 0 and not role:checkItemEnough({[ItemId.Diamond] = costD}) then + if costD ~= 0 and not role:checkItemEnough({[ItemId.Jade] = costD}) then return 2 end local goldC = 0 @@ -1410,7 +1410,7 @@ function _M.goldBuyRpc(agent, data) local coef = role.storeData:getGearExchangeCoef() goldC = goldC * coef role.dailyData:updateProperty({field = "goldBuyT", value = curT + 1}) - role:costItems({[ItemId.Diamond] = costD}, {log = {desc = "goldBuy"}}) + role:costItems({[ItemId.Jade] = costD}, {log = {desc = "goldBuy"}}) local reward, change = role:award({[ItemId.Gold] = math.floor(goldC)}, {log = {desc = "goldBuy"}}) SendPacket(actionCodes.Role_goldBuyRpc, MsgPack.pack(role:packReward(reward, change))) return true -- libgit2 0.21.2