引导修改

This commit is contained in:
by 2024-11-01 14:43:44 +08:00
parent 6f6926dd9f
commit 7ec2df8381
1 changed files with 3 additions and 3 deletions

View File

@ -3097,9 +3097,6 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
p.GuideData = make(map[int32]int32)
}
stepId := p.GuideStep + 1
if msg.GuideId != 1 {
stepId = int32(msg.Param[0])
}
pack := &player_proto.SCUpdateAttribute{
OpRetCode: player_proto.OpResultCode_OPRC_Error,
Tp: msg.GetTp(),
@ -3110,6 +3107,9 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
send := func() {
p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SCUpdateAttribute), pack)
logger.Logger.Tracef("SCUpdateAttribute %v", pack)
if msg.GuideId != 1 {
stepId = p.GuideData[msg.GuideId]
}
// 日志
if pack.OpRetCode == player_proto.OpResultCode_OPRC_Sucess {
switch msg.GetTp() {