Просмотр исходного кода

Merge branch 'Thailand' of https://gitee.com/wangwenfan/congkong into Thailand

zhanwencai 1 год назад
Родитель
Сommit
5b1c651518
2 измененных файлов с 5 добавлено и 3 удалено
  1. 4 2
      script/module/chat/Gm.lua
  2. 1 1
      script/module/present/OpenServerSingleCharge.lua

+ 4 - 2
script/module/chat/Gm.lua

@@ -449,9 +449,11 @@ function d3.osw(human, value)
 end
 
 function d3.chengjiu(human,val)
-	local param = Util.split(val, " ")
+	local ChengjiuExcel = require("excel.chengjiu").chengjiu
 	local ChengjiuLogic = require("chengjiu.ChengjiuLogic")
-	ChengjiuLogic.onCallback(human,3,3,4)
+	for k,v in pairs(ChengjiuExcel) do
+		ChengjiuLogic.onCallback(human,v.type, v.param)
+	end
 end
 
 function d3.jjczero()

+ 1 - 1
script/module/present/OpenServerSingleCharge.lua

@@ -52,7 +52,7 @@ end
 
 local function wrapSChargeList(net, id, sChargeInfo, sChargeDB)
 	net.id = id
-	net.needPrice = BuyExcel.buy[sChargeInfo.needBuyId].CN
+	net.needPrice = BuyExcel.buy[sChargeInfo.needBuyId].THA
 	net.maxCnt = sChargeInfo.maxCnt
 	net.cnt = sChargeDB[id] and sChargeDB[id].cnt or 0