胡牌南城修改同步其他四个麻将

master
罗家炜 2025-04-26 16:50:56 +08:00
parent 0e262ec7bc
commit e480594e37
3 changed files with 4 additions and 4 deletions

View File

@ -790,7 +790,7 @@ function M:OnFangziAction(...)
local index = arg[3] local index = arg[3]
printlog("OnFangziAction") printlog("OnFangziAction")
local info = _player_card_info[self:GetPos(player.seat)] local info = _player_card_info[self:GetPos(player.seat)]
local pNode = info._mask_liangpai -- local pNode = info._mask_liangpai
local effect = UIPackage.CreateObject("Extend_MJ_FuZhou", "FzEffect") local effect = UIPackage.CreateObject("Extend_MJ_FuZhou", "FzEffect")
if fz.type == FZType.Peng then if fz.type == FZType.Peng then
self:PlaySound("FuZhou_MJ", player.self_user.sex, "peng" .. math.random(1, 3)) self:PlaySound("FuZhou_MJ", player.self_user.sex, "peng" .. math.random(1, 3))

View File

@ -382,7 +382,7 @@ function M:EventInit()
local player = _room:GetPlayerBySeat(win_seat) local player = _room:GetPlayerBySeat(win_seat)
if win_seat ~= _room.self_player.seat then if win_seat ~= _room.self_player.seat then
url = "ui://Main_Majiang/别人胡" url = "ui://Main_Majiang/别人胡"
pNode = info._mask_liangpai pNode = info._view
elseif win_seat == _room.self_player.seat then elseif win_seat == _room.self_player.seat then
url = "ui://Main_Majiang/自己胡牌" url = "ui://Main_Majiang/自己胡牌"
pNode = self._view pNode = self._view
@ -789,7 +789,7 @@ function M:OnFangziAction(...)
local index = arg[3] local index = arg[3]
printlog("OnFangziAction") printlog("OnFangziAction")
local info = _player_card_info[self:GetPos(player.seat)] local info = _player_card_info[self:GetPos(player.seat)]
local pNode = info._mask_liangpai -- local pNode = info._mask_liangpai
local effect = UIPackage.CreateObject("Extend_MJ_JinXi", "FzEffect") local effect = UIPackage.CreateObject("Extend_MJ_JinXi", "FzEffect")
if fz.type == FZType.Peng then if fz.type == FZType.Peng then
self:PlaySound("JinXi_MJ", player.self_user.sex, "peng" .. math.random(1, 3)) self:PlaySound("JinXi_MJ", player.self_user.sex, "peng" .. math.random(1, 3))

View File

@ -788,7 +788,7 @@ function M:OnFangziAction(...)
local index = arg[3] local index = arg[3]
printlog("OnFangziAction") printlog("OnFangziAction")
local info = _player_card_info[self:GetPos(player.seat)] local info = _player_card_info[self:GetPos(player.seat)]
local pNode = info._mask_liangpai -- local pNode = info._mask_liangpai
local effect = UIPackage.CreateObject("Extend_MJ_LiChuan", "FzEffect") local effect = UIPackage.CreateObject("Extend_MJ_LiChuan", "FzEffect")
if fz.type == FZType.Peng then if fz.type == FZType.Peng then
self:PlaySound("LiChuan_MJ", player.self_user.sex, "peng" .. math.random(1, 3)) self:PlaySound("LiChuan_MJ", player.self_user.sex, "peng" .. math.random(1, 3))