同步最新亲友圈
parent
46c2e74c64
commit
0747069609
|
|
@ -14,7 +14,7 @@ end
|
||||||
|
|
||||||
local _LocalConfigAllGame = {
|
local _LocalConfigAllGame = {
|
||||||
-- 10, 33,
|
-- 10, 33,
|
||||||
-- 90,
|
90,
|
||||||
66, 86, 87, 88, 89
|
66, 86, 87, 88, 89
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -548,8 +548,14 @@ function M:CheckSanDai()
|
||||||
if self.threelack and M:CheckType(CardType.lessPlant) then
|
if self.threelack and M:CheckType(CardType.lessPlant) then
|
||||||
local last_k
|
local last_k
|
||||||
local num_san = 0
|
local num_san = 0
|
||||||
for k, v in pairs(self.cardList) do
|
local num_four = 0
|
||||||
|
for i = 1, self.cardSize do
|
||||||
|
local k = self.cardListSord[i]
|
||||||
|
local v = self.cardList[k]
|
||||||
if v >= 3 then
|
if v >= 3 then
|
||||||
|
if v == 4 then
|
||||||
|
num_four = 1
|
||||||
|
end
|
||||||
num_san = num_san + 1
|
num_san = num_san + 1
|
||||||
print("liengmengCheckthreelack2", last_k, k)
|
print("liengmengCheckthreelack2", last_k, k)
|
||||||
|
|
||||||
|
|
@ -565,7 +571,7 @@ function M:CheckSanDai()
|
||||||
end
|
end
|
||||||
print("liengmengCheckthreelack4", num_san, self.cardNum - num_san * 3 < num_san * 2)
|
print("liengmengCheckthreelack4", num_san, self.cardNum - num_san * 3 < num_san * 2)
|
||||||
|
|
||||||
if self.cardNum - num_san * 3 < num_san * 2 then
|
if self.cardNum - num_san * 3 < num_san * 2 and not (self.cardNum == 4 and num_four == 1) then
|
||||||
return CardType.lessPlant
|
return CardType.lessPlant
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -629,8 +629,10 @@ function M:EventInit()
|
||||||
|
|
||||||
self._cardCheck:InitLastCard(lastCardList)
|
self._cardCheck:InitLastCard(lastCardList)
|
||||||
self:_Effect(self._cardCheck.type, p)
|
self:_Effect(self._cardCheck.type, p)
|
||||||
|
print("lingmengsound", cardstype, num, self._room.is_new_bout)
|
||||||
|
self:PlaySound(p.self_user.sex, self:GetSoundFileName(self._cardCheck.type, num, self._room.is_new_bout))
|
||||||
|
-- self:PlaySound(p.self_user.sex, self:GetSoundFileName(cardstype, num, self._room.is_new_bout))
|
||||||
|
|
||||||
self:PlaySound(p.self_user.sex, self:GetSoundFileName(cardstype, num, self._room.is_new_bout))
|
|
||||||
if card_number == 1 then
|
if card_number == 1 then
|
||||||
--self:ChangeBgmMusic(2)
|
--self:ChangeBgmMusic(2)
|
||||||
self:ChangeBgmMusic(1)
|
self:ChangeBgmMusic(1)
|
||||||
|
|
@ -1365,29 +1367,51 @@ function M:UpdateRound(round)
|
||||||
self._text_maxRound.text = string.format("/%s局", total_round)
|
self._text_maxRound.text = string.format("/%s局", total_round)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- function M:GetSoundFileName(type, num, isNewBout)
|
||||||
|
-- local fileName
|
||||||
|
-- if isNewBout then
|
||||||
|
-- if type > 6 or type == 4 then
|
||||||
|
-- if type == 8 or type == 9 then
|
||||||
|
-- type = 7
|
||||||
|
-- end
|
||||||
|
-- fileName = tostring(type)
|
||||||
|
-- elseif type > 2 then
|
||||||
|
-- fileName = string.format("3_%d", num)
|
||||||
|
-- else
|
||||||
|
-- fileName = string.format("%d_%d", type, num)
|
||||||
|
-- end
|
||||||
|
-- else
|
||||||
|
-- math.randomseed(os.time())
|
||||||
|
-- if type > 2 and type ~= 11 then
|
||||||
|
-- local r = math.random(1, 3)
|
||||||
|
-- fileName = "dani_" .. r
|
||||||
|
-- elseif type == 11 then
|
||||||
|
-- fileName = tostring(type)
|
||||||
|
-- else
|
||||||
|
-- fileName = string.format("%d_%d", type, num)
|
||||||
|
-- end
|
||||||
|
-- end
|
||||||
|
-- return fileName
|
||||||
|
-- end
|
||||||
|
|
||||||
function M:GetSoundFileName(type, num, isNewBout)
|
function M:GetSoundFileName(type, num, isNewBout)
|
||||||
local fileName
|
local fileName
|
||||||
if isNewBout then
|
if type == 10 then
|
||||||
if type > 6 or type == 4 then
|
fileName = 4
|
||||||
if type == 8 or type == 9 then
|
elseif type == 11 then
|
||||||
type = 7
|
fileName = 6
|
||||||
end
|
elseif type == 5 or type == 8 or type == 12 then
|
||||||
fileName = tostring(type)
|
fileName = 7
|
||||||
elseif type > 2 then
|
elseif type == 2 then
|
||||||
fileName = string.format("3_%d", num)
|
fileName = 10
|
||||||
else
|
elseif type == 6 then
|
||||||
fileName = string.format("%d_%d", type, num)
|
fileName = 11
|
||||||
end
|
elseif type == 1 then
|
||||||
else
|
fileName = string.format("1_%d", num)
|
||||||
math.randomseed(os.time())
|
elseif type == 3 then
|
||||||
if type > 2 and type ~= 11 then
|
fileName = string.format("2_%d", num)
|
||||||
local r = math.random(1, 3)
|
elseif type == 4 or type == 7 then
|
||||||
fileName = "dani_" .. r
|
fileName = string.format("3_%d", num)
|
||||||
elseif type == 11 then
|
|
||||||
fileName = tostring(type)
|
|
||||||
else
|
|
||||||
fileName = string.format("%d_%d", type, num)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
return fileName
|
return fileName
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue