显示更多

master
罗家炜 2025-04-10 13:36:22 +08:00
parent b571dee504
commit 556099f297
3 changed files with 9 additions and 15 deletions

View File

@ -203,7 +203,6 @@ function M:tryWin()
local activeCard = self.cardList[1] local activeCard = self.cardList[1]
if (self:tryPair(activeCard)) then if (self:tryPair(activeCard)) then
print("tryPair")
if (self:tryWin()) then if (self:tryWin()) then
return true return true
end end
@ -212,23 +211,20 @@ function M:tryWin()
end end
if (self:tryKezi(activeCard)) then if (self:tryKezi(activeCard)) then
print("tryKezi")
if (self:tryWin()) then if (self:tryWin()) then
return true return true
end end
self:rollBack() self:rollBack()
end end
-- if (self:tryShunzi(activeCard)) then if (self:tryShunzi(activeCard)) then
-- print("tryShunzi") if (self:tryWin()) then
-- if (self:tryWin()) then return true
-- return true end
-- end self:rollBack()
-- self:rollBack() end
-- end
if (self:tryKezi1Zhong(activeCard)) then if (self:tryKezi1Zhong(activeCard)) then
print("tryKezi1Zhong")
if (self:tryWin()) then if (self:tryWin()) then
return true return true
end end
@ -236,7 +232,6 @@ function M:tryWin()
end end
if (self:tryKezi2Zhong(activeCard)) then if (self:tryKezi2Zhong(activeCard)) then
print("tryKezi2Zhong")
if (self:tryWin()) then if (self:tryWin()) then
return true return true
end end
@ -244,7 +239,6 @@ function M:tryWin()
end end
if (self:tryShunzi1Zhong(activeCard)) then if (self:tryShunzi1Zhong(activeCard)) then
print("tryShunzi1Zhong")
if (self:tryWin()) then if (self:tryWin()) then
return true return true
end end
@ -252,7 +246,6 @@ function M:tryWin()
end end
if (self:tryPair1Zhong(activeCard)) then if (self:tryPair1Zhong(activeCard)) then
print("tryPair1Zhong")
if (self:tryWin()) then if (self:tryWin()) then
return true return true
end end

View File

@ -101,7 +101,6 @@ function M:UpdateRound()
end end
function M:ShowJing() function M:ShowJing()
print("==================================self._room.jing", self._room.jing)
if self._room.jing then if self._room.jing then
self.jing.icon = 'ui://Main_Majiang/' .. self.jing.icon = 'ui://Main_Majiang/' ..
get_majiang_prefix(DataManager.CurrenRoom.game_id) .. "201_" .. self._room.jing get_majiang_prefix(DataManager.CurrenRoom.game_id) .. "201_" .. self._room.jing

View File

@ -117,11 +117,13 @@ function M:GetPrefix()
end end
function M:fillCard(obj, pos_str, card, use3d) function M:fillCard(obj, pos_str, card, use3d)
if DataManager.CurrenRoom.jing and card == DataManager.CurrenRoom.jing then
obj:GetController('jing').selectedIndex = 1
end
if self._current_card_type == 2 and (use3d == nil or use3d == true) then if self._current_card_type == 2 and (use3d == nil or use3d == true) then
obj.icon = 'ui://MajiangCard3d/' .. 'b' .. pos_str .. card obj.icon = 'ui://MajiangCard3d/' .. 'b' .. pos_str .. card
else else
obj.icon = 'ui://Main_Majiang/' .. self:GetPrefix() .. pos_str .. card obj.icon = 'ui://Main_Majiang/' .. self:GetPrefix() .. pos_str .. card
print("====================================obj", obj.icon)
end end
end end