This commit is contained in:
xiekaidong 2023-09-19 11:04:41 +08:00
parent 3d60bcfbf6
commit 17074b8359

View File

@ -202,6 +202,11 @@ function DungeonRuneManager:reqBuySliverWing(count)
if not count then if not count then
return return
end end
local runeData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.RUNES_OPEN)
local cost = runeData:getBuySliverCost()
if not GFunc.checkCost(cost.id, cost.num * count, true) then
return
end
self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterRuneBuySliverReq, {buy_count = count}, {}, self.rspBuySliverWing, BIReport.ITEM_GET_TYPE.DUNGEON_RUNE_BUY_WING) self:sendMessage(ProtoMsgType.FromMsgEnum.ChapterRuneBuySliverReq, {buy_count = count}, {}, self.rspBuySliverWing, BIReport.ITEM_GET_TYPE.DUNGEON_RUNE_BUY_WING)
end end