Merge branch 'develop' into dev_slots

This commit is contained in:
tomas 2024-11-11 11:59:42 +08:00
commit 64c5617bd8
1 changed files with 2 additions and 1 deletions

View File

@ -3251,7 +3251,7 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
send()
return nil
}
if msg.GuideId == 1 {
if msg.GuideId == common.GuideIdNewPlayer {
if p.GuideStep >= 0 && p.GuideStep < model.GameParamData.GuideStepMaxNum {
p.GuideStep = -1 // 跳过引导为 -1
pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess
@ -3269,6 +3269,7 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
return nil
}
p.GuideStep = int32(msg.GetParam()[0])
p.GuideData[msg.GetGuideId()] = int32(msg.GetParam()[0])
pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess
send()
return nil